What's your biggest current challenge? Have your say in Community Polls along the right column.

How to remove leftover codes slowing down my website's load speed?

How to remove leftover codes slowing down my website's load speed?

Dotflakes
Excursionist
35 0 14

Hi all,

Recently I noticed that my site is loading very slow. I tried to take some measures but I get a little bit stuck. Long ago in some point I installed a bunch of apps and later on deleted due to poor performance.  I didn't know that some of them were not deleted properly; they left behind codes and liquid files behind. For example - avada, booster, bitespeed etc. I deleted pretty much all files and codes from theme.liquid files as much as I found out. Still I am not sure if there are other codes somewhere there. So far so good - this action definitely improved my page load speed but still slow. Now I am stuck with the following codes in the file theme.liquid:

<!-- Product meta ================================================== -->
{% include 'bitespeed-analytics' %} {% include 'social-meta-tags' %}

If I delete this code - {% include 'bitespeed-analytics' %}, pages are loading super fast. but site is in trouble - in mobile app menu (humburger) is not expanding. 

I would appreciate any suggestion. 

My site:  https://dotflakes.com/

Thanks

Moni

Replies 4 (4)

oreoorbitz
Shopify Partner
261 31 133

I think in a scenario like this, you'll want to hire somebody, as its hard to diagnose what what the issue might be without actually being able to go into the code and debug things properly.

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

Thanks 

JoesIdeas
Shopify Partner
2446 225 662

What you can do is read the code of the snippet bitespeed-analytics. It will be in the Snippets folder.

You might be able to extrapolate the problem from there.

Another tactic you can try is reading the console messages to look for errors. If you're not familiar with how to work with the console, this guide will get you started: https://speedboostr.com/finding-and-fixing-server-errors/

My guess is that deleting the snippet causes a break in javascript, maybe because of another file looking for that snippet - that type of situation can cause a break in javascript, preventing functionality like menu opening.

One final idea, you might be able to contact the makers of that app and ask them how to uninstall everything. Could be that you just need to remove some other code that references that snippet.

• Creator of Order Automator [auto tag, fulfill, connect FBA, daily jobs]
• Co-Creator of Product Automator [suite of features for products / collections]
• Shopify developer for 10+ years, store owner for 7 years
• Blog: Shopify Tips, Guides, and Automation Tactics
Dotflakes
Excursionist
35 0 14

Hi Joe,

Thank you very much for you suggestion. I am gonna follow your instruction. Then let's see what happens next!

Moni