How to resolve jQuery library conflicts? | AEM 6

This article discusses steps to resolve jQuery library conflicts in AEM 6 by using jQuery's noConflict feature.




You can enable jQuery.noConflict through the client library dependencies property, with AEM. This is a solution for serving your own version of jQuery along with the one that ships with AEM.

To enable jQuery.noConflict through the client library dependencies property, follow these steps:

  1. Log in to CRX/DE Lite as administrator (http://localhost:4502/crx/de/index.jsp).

  2. Go to /etc/clientlibs/foundation/jquery.

  3. Add the value granite.jquery.noconflict after granite.jquery in the dependencies property.

  4. Click Save All, to save the changes.

AEM no longer uses jQuery or $ JavaScript objects and only uses $CQ.

Additional Information

Adobe logó

Bejelentkezés a fiókba