3

After upgrading to Kentico 8.1, my site's jQuery modules seemingly disappeared. Kentico is unilaterally injecting its own jQuery module, overwriting my own reference. How do I prevent this?

Bryan
  • 1,431
  • 1
  • 17
  • 22

2 Answers2

3

This topic is covered in the following article: Using a custom jQuery when developing pages in Kentico.

Kentico currently creates a jQuery alias. What you need to do is open the jquery-core.js file and locate the line stating:

var $cmsj = jQuery.noConflict();

Comment this line and then uncomment the line:

var $cmsj = jQuery.noConflict(true);
0

Kentico's own site documents the problem here. The solution is to customize Kentico's built-in jquery-core.js file, replacing the line var $cmsj = jQuery.noConflict(); with the line var $cmsj = jQuery.noConflict(true);. And pray that subsequent hotfixes/upgrades don't revert this change.

Bryan
  • 1,431
  • 1
  • 17
  • 22