FROM CACHE - en_header

SEO Optimization - Not fully possible with Shopify?

Simon_Schier
Tourist
10 1 10

Hey there,

 

I recently used Google PageSpeed Insights to check out how to optimize our store further for SEO. I wondered that PageSpeed listed some Shopify internal CSS / JS as a thing which is to optimize, concrete to use compression as an example. 

 

Is there a way for us to use compression for shopify JS (eg. …assets/site.js?482…(cdn.shopify.com)) - and if not, why doesn't Shopify activate this by default?

 

thanks,

 

Simon

--
Vegan, Unisex cosmetics & perfume - https://www.soberberlin.com
Reply 1 (1)
Jason
Shopify Expert
10915 192 2190

If you minimise/compress a JS file and it has formatting errors in it - it breaks. So a simple thing like a missing semi colon could totally stop all JS from running on the page. So whilst it's _possible_ it's a massively risky thing to do. I get why this isn't a thing.

 

If that optimisation is important to you I'd suggest doing the minification on your side and replacing the larger version.

Be sure to keep the original in case you need to go back.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★