1

I've been doing some performance checks on a website I'm building, and noticed that jQuery 3.5.1 is being loaded via cpresources:

Sources pabel

Why is it doing this? And can I stop it? I'm already loading jQuery 3.5.1 in my scripts.js file (combined with some other stuff and minified using gulp & webpack).

2
  • 1
    Do you have any plugins installed? – dmatthams Dec 17 '20 at 22:09
  • I do ya... come to think of it, I bet Wheel Form is the culprit – Bryce Dec 20 '20 at 3:13
1

If any of your image transforms have not previously been processed they will make a call to /cpresources/... To prevent this, generate all your transforms before page load with the generateTransformsBeforePageLoad config setting:

'generateTransformsBeforePageLoad' => true
1
  • What do image transforms have to do with jquery? – Bryce Dec 20 '20 at 3:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.