Page specific javascript Best practices
HI,
I am wondering what is the best way to add page specific javascript using AEM as a Cloud.
Author should be able to control which flavor of javascript logic is included.
Javascript code should be part of AEM Code Repository same as all other javascript (ui.frontend)
My brainstorming results:
- Add option to add a custom css class to each page, which "activates" the javascript flavour if present
- Build a new component which is added to page, Author can select logic flavor by adding component
- ...
Your feedback would be greatly appreciated
--
Volker