Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

jQuery and Target - duplicate load

williamkr1
Level 2
Level 2

Our site currently implements jQuery at the global level, but it also appears that Target also injects an un-minfied version of jQuery as well. Is it necessary to do this or is there some way to disable this. It does affect page load because it render blocks and while it doesn't affect code it seems silly to have duplicate references. 

 

If not, can we at least minify it through some config?

 

Thanks very much.

1 Accepted Solution
ryanr701
Correct answer by
Employee
Employee

Hi @williamkr1,

The at.js should not be downloading or including the jquery library. To my understanding Zepto (a modular jquery lite type library) is embed into the at.js, and it should be in the minified form requiring a max of 9kb. I don't believe there is a way to "strip" this from the at.js library.

Hope this helps.

View solution in original post

3 Replies
ryanr701
Correct answer by
Employee
Employee

Hi @williamkr1,

The at.js should not be downloading or including the jquery library. To my understanding Zepto (a modular jquery lite type library) is embed into the at.js, and it should be in the minified form requiring a max of 9kb. I don't believe there is a way to "strip" this from the at.js library.

Hope this helps.

View solution in original post

williamkr1
Level 2
Level 2
This is odd because we clearly see a jQuery library with the following header that is not coming from our code: * jQuery JavaScript Library v1.12.4-aem * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/
ryanr701
Employee
Employee

Which version of at.js are you using? This could be from an older one. The current versions should not.