pagespeed - Shopify page speed improvements - htaccess, etc
A client has complained that their website is slow, so I'm trying to implement some improvements. The first thing I was going to do was modify their htaccess file but, being that they are using a Shopify system, it doesn't seem possible to do such a thing.
How can I access and modify the .htaccess file for a Shopify website? Or if I can not access .htaccess, how can I enable GZIP compression, Expire / Cache-control, etc.. How can I setup all the things that would normally be setup in an .htaccess file?
You cannot edit the .htaccess file in Shopify but you can do some techniques to improve the loading speed like:
- Remove render-blocking resources
- Remove unnecessary shopify apps
- Preload Web Fonts
- Compress Images
- Make the images responsive and load only visible images by implementing lazy loading technique and I suggest to use Lazysizes plugin to do both ( responsive images and lazy loading)
- Preload and minify Js and Css
- Combine all JS in one file and also for CSS to reduce the number of requests
Shopify Speed OptimizationвЂЉвЂ”вЂЉStep-by-Step Guide (https://medium.com/@iliashaddad/shopify-speed-optimization-step-by-step-guide-4afca6423b18)
You cannot DevOps a slow Shopify site.
Shopify is managed by a DevOps team far more skilled than Apache tweakers used to fiddling with that venerable ancient beastess and .htaccess files.
And they know all about compression and caching too. You are likely barking up the wrong tree.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.