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

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online