Hi All,
I have been hearing from teams that requireJS and Client Libs cannot go together. Can someone please explain that why is it so? What is that does not let these work together?
What is the best practice or high level approach if we have to use AMD style or RequireJS type of implementation in AEM?
Appreciate your attention and responses
Thanks,
Nitin
Solved! Go to Solution.
Views
Replies
Total Likes
There is a github project on using cq5 with requirejs. Please review this
Views
Replies
Total Likes
There is a github project on using cq5 with requirejs. Please review this
Views
Replies
Total Likes
In addition - here is a community member who got it working. Details here:
Views
Replies
Total Likes
Thanks. Looking at this GitHub example it seems that we need to provide a crx property at the component or template level and then the headlibs.jsp would read and load the same. This example is good as it still does not clutter the template with unnecessary inclusions of JS and will only load the ones which are a part of components included in a page.
Can you please throw some light on a scenario where client libs can be used along with requireJS?
Thanks,
Nitin
Views
Replies
Total Likes
Thanks Scott. This is good as well.
In your experience do you recommend any best practice or use cases where we should use requireJS and clientlibs in AEM paradigm and yet use the beauty of clientlibs? Your points/insights greatly appreciated
Thanks,
Nitin
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies