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

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책