I noticed a few threads where people reported the same issue, and I thought it’d be a good idea to make a thread to explain issue.
So basically, the issue is that people have been getting their site optmized, their score is 90ish on PageSpeed Insights(PSI), they’re happy.
However, now they see that their PSI score on shopify is noticable worse then on PageSpeed Insights, what gives?! now they are upset, probably at Shopify for not working correctly as usual!
The reason, in most cases is becuase instead of optmizing how content loads, and helping store owners remove content from their site to speed up a site, the people who optmized the sites like this used a hack to not load any content when PageSpeed Insights loads the page.
The script checks what type of user is loading the page, if the user looks like PageSpeed Insights, then they load a blank page basically, if the user is a real user, they load a normal page.
How do I confirm if my site is using the hack?
Go the your site
Open the element inspect with ctrl + shift + c or cmd + shift + c if your on a mac.
Click inside the element inspector, then press crtl + f or cmd + f
Type in document.open() into the search input
If you see a block of code that looks like this:
Then your site is using the hack to hide content for PSI.
Shopify must of recently changed some settings of how their Speed score works, so the hack doesn’t hide the page content for Shopify, that’s why the scores are diferent.
Is this hack good or bad for SEO?
I don’t know. Technically, this hack improves your pagespeed insight score, however, your not really changing your user expierence, so it won’t do anything to improve your bounce rate, its also likley that Google gets wise to these sort of hacks and starts punishing sites for using them, SEO wise.

