Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Can we safely remove multiple JQueries to Improve site speed

Can we safely remove multiple JQueries to Improve site speed

megansns
Excursionist
23 1 8

According to the online page speed analyzers, JavaScript is why our site is slow. It shows that we have three separate versions of JQuery being included. These are likely all being included from different apps.

 

Can we safely remove two of these, or would it break stuff if we remove them?

Reply 1 (1)

oreoorbitz
Shopify Partner
261 31 133

Yes you could, by depending on the situation, you might have to account for the following complications:

 

1.Jquery version

Jquery has had some breaking changes with its updates over the years, so an app might be depending on an old version of jquery, or newer one. so you'll just have to double check the one version you load works for every app and your store

 

2.Loading order

You'll have to make sure that your version of Jquery loads before any of the apps

 

3. It might not be possible

Sometimes an app will  call some code, and INSIDE of that code, they call Jquery, so there's not really much that can be done there.

 

Available for pagespeed consulting
https://www.upwork.com/freelancers/~01a19b6cd90193f4f6?viewMode=1&s=1017484851352698949