I notice my store's speed score on mobile is 36 and it changed to 56 once I removed the below snipped from the file theme.liquid. Can someone please help me understand what does this code really do? Thanks in advance!
Elias here with Shopify Support. Thank you for reaching out.
@PorridgeHead we see most sites that we optimize having old app code from uninstalled apps in the past. If this code you removed was from an old app, you did the right thing and have nothing to worry about.
The reason why old app code lingers is that after you delete an app, the app immediately loses access to your store, so if it added code to your theme then that needs to be removed. Responsible app developers will send a notification email with uninstall instructions, but sadly this is not common.
To check for additional old app code:
1) Duplicate your live theme and work off the backup theme (always do this when making edits to your site)
2) Open up your common template files: theme.liquid, index.liquid, product.liquid, collection.liquid, cart.liquid, article.liquid
3) In each file, read the code and look for scripts, include / render statements, or pieces of code that you recognize being related to an app you had previously uninstalled. Good app developers will add code comments so you know what app it's from. If there is no code comments around an external script or render / include, then look at the file name, and google it if you don't recognize it, that can also give you a clue to the scripts function. For templates like collection and product, it will include snippets, you'll have to open those snippets if you want to do a full investigation.
Most of the old app code we find is in theme.liquid, so I would start there. Probably 90% actually is there so if you just clean up that file you'll be in good shape. If you get stuck or need help feel free to reach out to my team at speedboostr.com/contact.
Thanks @Elias for responding!
Thank you for following up!
I'm glad to hear that removing this line of code had no impact on your existing apps. Based on the URL in the snippet and as suggested by @JoesIdeas, it does appear to be an old coding from an app developed by Shopoe. However, it is possible that their apps have been delisted, as I'm not seeing any apps developed by Shopoe in our App Store at this time.
That being said, you can also check your theme code by downloading a fresh copy so that you can review and compare the coding. Nevertheless, if you haven't updated your theme in awhile, then it may also be worth considering to update your theme. This way, you can get some of the newer features that comes with your theme and to see if your theme is compatible with Online store 2.0 as well.
Which theme are you currently using? Also, can you check which version of the theme you have currently?
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...By Arno Nov 27, 2023
You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...By Skye Nov 8, 2023