CMS Development

josephhur
Member

Blog Page is slow

My blog loads really slowly. What's the best way to fix this issue? Based on Lighthouse, looks like our jquery is the main problem. What are some ways I can tackle this?

 

Site: https://blog.anedot.com/

 

Thank you!

0 Upvotes
2 Replies 2
stefen
Key Advisor | Partner
Key Advisor | Partner

Blog Page is slow

@josephhur the primary culprit would be the images. You should implement the resize_image_url HubL Function to size all the images appropriately and also add srcset attribute to all the images so the images will load the appropriate size based on the screen size and DPI. Lastly, you could also easily implement lazy loading on those images by adding the loading="lazy" attribute.

 

It looks like there is also a major issue with duplicate javascript files being added over and over. You should make sure all the js files are using the require_js function and referencing the same file so duplicates do not get added.

Stefen Phelps, Community Champion, Kelp Web Developer
JanetArmstrong
Top Contributor | Partner
Top Contributor | Partner

Blog Page is slow

There are javascript files that can't be found. It looks like you're using the same marketplace theme I downloaded for this site https://www.habovillage.com/blog.

 

In your setup you may have moved files around or forgot to remove old links etc. Go back to the original template and preview from the design manager. See what you may have added, moved, etc. to cause any problems with files.