How can I remove unused code after uninstalling apps?

Hey, @OliUK can you help me out, please.

it’s all about the unused javas

here is my site

https://just-experience.myshopify.com

please help

Hi @Ignatiusted ,

There’s a big opportunity to save time by adding lazy loading to your image tags, just adding

loading=lazy

to image tags in your theme will do the trick with most browsers. <img GOES HERE, another-attribute=another-value>

Your biggest third-party javascript file is your fast checkout. This could be misleading though, as if it’s pure Javascript and triggered after page-load, then that’s not really a problem. Even if Google reports it as one.

Cheers,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products

Thanks :+1: so grateful for the help.

I’ll use the “lazy” code

Hey @OliUK . I’ve been testing out a lot of Shopify apps. Unfortunately all that’s resulted from it is that my site speed has reduced drastically. Would be grateful if you could look into it so I can try rectifying it?

http://www.hibagifting.com

Hi @Rose9797 ,

You have a labels app that seems to be adding 350ms to your load time. Although it might be running in parallel to other processes, so you would probably have to test removing it before having a concrete answer.

I hate to say it, but most of your store’s loading time comes from your theme. So, not really something you want to tinker around with too much.

That said, the apps you mention might have injected code into your theme and not cleaned up after themselves. I would suggest going through each of the apps you installed and googling how to remove them. Our app has a button especially for this task, but I’ve seen plenty that requires removing code manually.

Good luck!

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products

Hello @OliUK ,

I have not set up Google Tag manager so far. Just google Analytics.

My url to store or some other?

supremeportables.com is my store url.

Cheers,

Denis

Hi @Tutorilux ,

Just had a look at your site and the Google lighthouse test.

No big Javascript files stand out, Facebook and your Shopify themes are the larger requests.

Google is giving you a low score because of all of your images. You do have lazy loading on, and to be honest your product pages load really fast for me. Maybe consider removing the images from your review widget, if you would like to improve the score.

Cheers,

Oli

——————————

Founder @ www.preproduct.io

Test and make sales for future products

——————————

Founder @ www.preproduct.io

Test and make sales for future products

@Perennial

, would you please reach out to me I am having the same issues with removing unused code, thanks!

Can someone who can help remove unused code help me?

Hello @OliUK

first apologise for my english.

I need your HELLLLPPPPPP..

my site is terribly slow, I’ve tried them all …
please help

https://www.milanobags.ro

Hi @Gigi0ne ,

No worries at all.

Your Shopify theme downloads a big Javascript file that takes half a second. We can’t get rid of this though unfortunately. You’ve also got quite a lot of little Javascript requests, either from your theme or from apps. None of them are bad, but all together they add up.

I know this isn’t the best news, in terms of things you can do to increase page speed. If it’s any consolation, your website loads under 2secoonds for me, homepage + product pages.

Cheers,

Oli

——————————

Founder @ www.preproduct.io

Test and make sales for future products

Hi @OliUK , i am having the same issue, my mobile score is sitting below 20 and i tried everything. i am not very clued up with code. Would it be possible to have a look and advise what i could remove to improve my mobile speed?

Thank you

thank’s @OliUK

Hi @Rhood1 ,

Yep, sure. Just post your store’s URL and I’ll have a look.

Cheers,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products

Thank you @OliUK

My url is https://www.rhood.co.za

Shopify is mighty-mouses-s.myshopify.com

Much appreciated.

Hi @Rhood1 ,

Google’s mainly complaining about unused Javascript with your store. It mentions there’s a saving of 200kb or so if a menu app beginning with a ‘Q’ is optimised. If you’re not using it, I would just turn it off for now.

I’m not entirely sure I believe Google on there result, it says the time to your site being interactive is 15 seconds! I’m using Google Lighthouse which mimics a bad internet connection, but still… My Mac loads your product pages in about 2 seconds. It might be some funny Javascript which is causing an issue with the test results. Or it might be a reflection of the large number of different Javascript requests.

Here’s a list of Javascript processes running on your store :

URLTransfer SizePotential Savings


…config/222…?v=2.9.23&r=stable
(connect.facebook.net)


131.9 KB

113.3 KB

/tmenu/app-v5.js?token=…
(sdk.qikify.com)


184.1 KB

93.2 KB

…assets/vendor.js?v=593…
(cdn.shopify.com)


137.2 KB

65.1 KB

…r20190131/show_ads_impl_fy2019.js
(pagead2.googlesyndication.com)


90 KB

54.8 KB

…latest/95a88df….0.en.js
(cdn.shopify.com)


70 KB

49.8 KB

…js/instalment.js
(app.mobicredwidget.co.za)


84.3 KB

48.3 KB

/jquery-3.0.0.min.js
(code.jquery.com)


58.7 KB

43.9 KB

/en_US/fbevents.js
(connect.facebook.net)


67.1 KB

33.3 KB

…cool-image-magnifier/main.min.js?shop=…
(cdn.codeblackbelt.com)


57.9 KB

32.5 KB

…assets/theme.js?v=178…
(cdn.shopify.com)


51 KB

32.2 KB

/scripttag/avada-sale-pops.min.js?shop=…
(salespop.apps.avada.io)


52.5 KB

27.5 KB

…boomerang/shopify-boomerang-1.0.0.min.js
(cdn.shopify.com)


61 KB

24.1 KB

…js/adsbygoogle.js
(pagead2.googlesyndication.com)


47.6 KB

22.5 KB

…files/19aug26paidd20_free_final.js?v=…
(cdn.shopify.com)


86.1 KB

20.8 KB

/scripttag/avada-pr.min.js?shop=mighty-mouses-s.myshopify.com
(salespop.apps.avada.io)


67.4 KB

20.2 KB

…3.4.1/jquery.min.js
(ajax.googleapis.com)


31.9 KB

19.7 KB

/inShop/forms.js?v=2020-08-29T10
(omnisrc.com)


26.5 KB

17.6 KB

…current/osd.js?cb=%2Fr20100101
(www.googletagservices.com)


53.8 KB

17.5 KB

…storefront/features-87e8399….js
(cdn.shopify.com)


25.6 KB

13.8 KB

…latest/1a5d0c1….2.en.js
(cdn.shopify.com)


42.6 KB

12.2 KB

/analytics.js
(www.google-analytics.com)


36.5 KB

10.6 KB

…assets/bss-product-labels.js?v=670…
(cdn.shopify.com)


9 KB

8.2 KB

/inshop/launcher.js?v=2020-08-29T10
(omnisrc.com)


14.1 KB

6.8 KB

…latest/2853fb0….1.en.js
(cdn.shopify.com)


15.8 KB

5.1 KB

…tricorder/trekkie.storefront.min.js?v=2020.07.13.1
(cdn.shopify.com)


14.2 KB

5.1 KB

…latest/spb.en.js
(cdn.shopify.com)


12.6 KB

4.8 KB

…latest/709f512….3.en.js
(cdn.shopify.com)


7.5 KB

3.8 KB

…script_tag/sca_affiliate.js?shop=mighty-mouses-s.myshopify.com
(d1639lhkj5l89m.cloudfront.net)


5.6 KB

3.7 KB

…assets/lazysizes.min.js?v=560…
(cdn.shopify.com)


8.2 KB

3 KB

…latest/f890f10….11.en.js
(cdn.shopify.com)


14 KB

3 KB

/sodar/sodar2.js
(tpc.googlesyndication.com)


5.8 KB

2.8 KB


Cheers,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products

Well, I figured I could post here as well.

My stores desktop speed used to be above a 90, now it’s an 84, I don’t think that is horrible.

However my mobile speed is under a 30. Can you take a look as well? You’ve been super helpful to everyone already!

www.yourgadgetcorner.com

Thank you!

Hi @OliUK thank you for your help, if i remove the java scrip manually, would it affect the site at all. You really been a big help with this.

Regards

Hi @YourGC ,

No worries at all. It might be worth opening your site from your phone using ‘incognito’ or ‘private’ mode, so you can see what pop-ups are coming up for new visitors. Sometimes this can be surprising.

In terms of removing unused Javascript, Google says Facebook and your chat bot are the biggest offenders.

Hope that helps,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products

Hi @Rhood1 ,

It can often be as simple as removing code manually. I would definitely google how to remove that specific app before trying anything though. Sometimes there are guides etc.

If you are going to remove code, I would recommend duplicating your template and then making changes to the duplicate, then previewing them.

I once had a horrible experience where I removed an old app’s code from a client’s product page and it made all of her prices display as 0! We didn’t realise for hours. I still feel terrible about it now. So, testing before going live is highly recommended, some apps are less responsible than others when it comes to the uninstallation process.

Cheers,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products