FROM CACHE - en_header

Store speed score and document.write

Solved
Pawsson
New Member
3 0 1

I hired Shopify Expert to improve my store speed (it was at around 30 by shopify score and PageSpeed insight was bit better). At first it looked that he did an awesome job and mobile / comp by PageSpeed was approx 90-95 / 98-100. However, I was soon informed that the expert had been used document.write to bypass the Pagespeed score and there is not much real improvements in my sore speed, and that this is actually not good with SEO for example.

Question: is this true? did this "expert" do a fake fix?

Store is: www.pawsson.fi if anyone wanna check and give me an advise?

Thanks,

Pawsson

Accepted Solution (1)

Accepted Solutions
oreoorbitz
Shopify Partner
208 25 117

This is an accepted solution.

If you were told this is good for SEO, would you not mind that the developer used a hacky solution to increase your lab score?

But yes, if you see the screenshot bellow, and look at the pictures that PSI displays, you'll see they look nothing like the actuall website, the developer put a conditional so that when the site is loaded by PSI, only an empty page is returned, which is why the score is high.

 

Screenshot_104.jpg

Available for freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes

If your looking for a pagespeed solution for your Website, take a look at: https://renderbetter.com/

View solution in original post

Replies 6 (6)
oreoorbitz
Shopify Partner
208 25 117

This is an accepted solution.

If you were told this is good for SEO, would you not mind that the developer used a hacky solution to increase your lab score?

But yes, if you see the screenshot bellow, and look at the pictures that PSI displays, you'll see they look nothing like the actuall website, the developer put a conditional so that when the site is loaded by PSI, only an empty page is returned, which is why the score is high.

 

Screenshot_104.jpg

Available for freelance. I specialize in speed improvement and theme development.
https://www.upwork.com/fl/orionholmes

If your looking for a pagespeed solution for your Website, take a look at: https://renderbetter.com/
Pawsson
New Member
3 0 1

Thank you Oreoorbiz for confirming this. I checked a bit and it looks like that this guy have done same for other ppl too.

Not sure if it is inappropriate or not but I will publish the name, just in case it will prevent any other guy to fall into this trap! (moderator please delete this if you think this is not ok): So the scammer is Web Nation Media - https://experts.shopify.com/web-nation-media

DO NOT USE HIM! This guy should be thrown away from Shopify Experts.

Best,

Pawsson

nuova-idea
Explorer
46 0 15

same issue here, hired on Fiverr and got the same scam.

 

Let's spread the word to ban such behavior from unprofessional developers and protect other store owners.

 

The code looks like this:

document.open();

if(window['\x6E\x61\x76\x69\x67\x61\x74\x6F\x72']['\x75\x73\x65\x72\x41\x67\x65\x6E\x74'].indexOf('\x43\x68\x72\x6F\x6D\x65\x2D\x4C\x69\x67\x68\x74\x68\x6F\x75\x73\x65') == -1 && window['\x6E\x61\x76\x69\x67\x61\x74\x6F\x72']['\x75\x73\x65\x72\x41\x67\x65\x6E\x74'].indexOf('X11') == -1 && window['\x6E\x61\x76\x69\x67\x61\x74\x6F\x72']['\x75\x73\x65\x72\x41\x67\x65\x6E\x74'].indexOf('\x47\x54\x6D\x65\x74\x72\x69\x78') == -1) {

   console.log("normal user");

    document.write({{pDescription | json}});

  }

 

  else {

    document.write("<html><p>.</p></html>");

  }

  document.close();

nuova-idea
Explorer
46 0 15

i, any idea which is the part of the code to be removed to cancel this hack?

oscprofessional
Shopify Partner
12191 1890 2429

 

@nuova-idea ,

This script is illegal, that shows fake result.

you need to check in the theme.liquid file and remove this script as soon as possible that will affect your SEO. Google may not count your store rank.

Recently I have checked one store and caught this.

oscprofessional_0-1655194504463.png

 

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
uamosk
New Member
2 0 0

Just found similar script,

I've deleted it with  the  3 elements together:

 

 

 {%capture pDescription%} and {% capture vendors %} and their corresponding closing tags - {%endcapture%}.

 

-thank you guys from the chat: https://community.shopify.com/c/site-speed/store-speed-scam-shopify-speed-do-not-match-lighthouse-sp...