Best practices for customization | Kentico 12 Service Pack Documentation (xperience.io)

Best practices for customization | Kentico 12 Service Pack Documentation (xperience.io)

Using jQuery

 

Note: The information in this section only applies to the Kentico administration interface and sites built using the Portal Engine development model, not to MVC sites.

Do NOT use the default jQuery provided in Kentico projects for your own client scripts. Newer versions of Kentico may contain a different version of jQuery, so your scripts may not work correctly after upgrading.

The Kentico jQuery is registered in No-Conflict mode under the $cmsj alias.

Best practice: Add, link and maintain your own jQuery library within the Kentico project. This gives you full control over the jQuery version and helps protect your custom scripts from breaking when upgrading Kentico.

 

posted @ 2023-05-16 14:29  ChuckLu  阅读(6)  评论(0编辑  收藏  举报