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

Dotflakes
Excursionist
35 0 10

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
253 29 130

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 freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes



You can also contact me directly if you prefer.
Dotflakes
Excursionist
35 0 10

Thanks 

JoesIdeas
Shopify Expert
2263 207 599

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 (automate tagging, fulfillment, Amazon, notifications + more)
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Deal with Fraud / Chargebacks
Dotflakes
Excursionist
35 0 10

Hi Joe,

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

Moni