Abstract
The standard way to include a client-side library (that is, a JS or CSS file) in the HTML of a page is simply to include a
...
...
Even the inline scripts can be added to the page
While these approaches work in AEM by adding the client-side library as a link or inline to the page components, AEM provides Client-side Library Folders, which allow you to store your client-side code — JavaScript and CSS in the repository, organize it into categories, and define when and how each category of code is to be served to the client. The client-side library system then takes care of producing the correct links in
your final webpage to load the correct code.
The generated HTML page contains the reference to the final script URL.
...
...
...
...
Sometimes we may need to include scripts dynamically into the websites without changing the code, this tutorial will explain the different approaches to include the scripts dynamically in the websites without performing the code changes.
Read Full Blog
Q&A
Please use this thread to ask the related questions.
Kautuk Sahni