Solved
Load JS for a particular page
Hi Guys,
How to load JS to specific page.
I am using forms component on my page. Wanna load js for particular page not to all pages.
Hi Guys,
How to load JS to specific page.
I am using forms component on my page. Wanna load js for particular page not to all pages.
Yes.
See this bolg post :- AEM Client Libraries explained by example
It covers "components with their own JavaScript and CSS files".
// create a clientlibs folder within the component folder and add the js, css required for that component. and then include this clientlib in your component.
~kautuk
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.