Explain Store Speed Optimization Modifications

arminik
Tourist
10 0 5

Hi there,

We recently hired a Shopify expert to assist us with store speed optimization and after publishing his work we noticed a 35% impact on our marketing analytics and immediately reverted his work as it was very critical for us. After that, we hired another Shopify expert to do the speed optimization from scratch but he refuses to explain his works and modifications, and scripts that he added to our store.

I was wondering if someone can explain each of the changes and modifications as shown below for us.

I would really appreciate a detailed one-by-one explanation for each part.

The block on left is BEFORE THE SPEED OPTIMIZATION and the block on right is AFTER SPEED OPTIMIZATION.

Screenshot 2022-11-07 at 2.37.55 PM.pngScreenshot 2022-11-07 at 2.39.14 PM.pngScreenshot 2022-11-07 at 2.39.00 PM.pngScreenshot 2022-11-07 at 2.38.49 PM.pngScreenshot 2022-11-07 at 2.38.40 PM.pngScreenshot 2022-11-07 at 2.38.27 PM.pngScreenshot 2022-11-07 at 2.38.19 PM.png

Replies 4 (4)

oreoorbitz
Shopify Partner
253 29 130

This is essentially speed hack code, see posts around this community on the nature on "Hacky" solutions to performance.

So they're change the attributes of <script> tags, ,so they don't load. Then they're loading the script tags, be fixing the attributes, UNLESS the script identifies the origin as lighthouse, so that pagespeed insights does not count the scripts towards your speed score, thus improving your speed score. Real users will probably not see any improvment in performance.

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.

PaulNewton
Shopify Partner
6339 579 1350

A step by step explanation is a project in itself a question of that size way beyond the scope of a forum discussion.

Narrow the scope of questions.

And avoid widescreen screenshots like this when asking for code review it just increases friction unnecessarily for any possible contributes having to wrangle a bunch of large images. Use a diff tool with temporary publicly shareable url, or a github repo if the source licenses allow. 

 

Roughly for analytics problems the customization is just aggressively changing every script loading behavior it can. Which includes some analytics related tools.

 

Not 100% in agreement with @oreoorbitz on the lighthouse dodging though yet it's likely as the obfuscated code in the ~5th image messing with navigator is suspect.

Performance is a business discipline not something to just slap in.

To make actual long term gains from any investments It should be confirmed with testing of behavior among multiple tools in a process.

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


arminik
Tourist
10 0 5

Hi there,

Thank you for your response. I agree with you, the discussion forum might not be the best option to get help regarding this topic but I am desperate for help and understanding these changes and to prevent whatever that went wrong before and impacted our advertising analytics. So please let me know where is the best place to get help regarding this detailed explanation from you or anyone that you might suggest.

 

Also, for "Roughly for analytics problems the customization is just aggressively changing every script loading behavior it can. Which includes some analytics related tools." and "obfuscated code in the ~5th image messing with navigator is suspect." what are your opinions about these exactly and if you think we should prevent them?

 

Thank you so much

oreoorbitz
Shopify Partner
253 29 130

You would want to hire someone, these forums are mainly for us to display our skills by giving a reasonable amount of help, thus leading to getting hired,, or just being helpful for the sake of it, but most people aren't going to do indepth super detailed help as that would be too time consuming.

See a community discussion on the topic of speed hack code here:
https://community.shopify.com/c/site-speed/shopify-score-does-not-match-pagespeed-insight-score-see-...
PualNewton has a good explanation here of the possible negatives of a obfusication method, which I believe is what is being used.
Here is another thread on the topic.
https://community.shopify.com/c/site-speed/store-speed-scam-shopify-speed-do-not-match-lighthouse-sp...

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.