jQuery and Target - duplicate load

Avatar

Avatar
Boost 1
Level 1
williamkr1
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
williamkr1
Level 1

Like

1 like

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
williamkr1
Level 1

07-05-2020

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Give Back 25
Employee
ryanr701
Employee

Likes

203 likes

Total Posts

224 posts

Correct reply

91 solutions
Top badges earned
Give Back 25
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
ryanr701
Employee

07-05-2020

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.