Avoid Document write

Hi

For users on slow connections, external scripts dynamically injected via document.write() can delay page load by tens of seconds.

Google PageSpeed insights suggesting the above line.

When I needed help from WP ROCKET developer they said the only thing you can do is either ask the original developers of theme to fix this in the code or install an alternative that uses a different approach to add code to the HTML.

Kindly see this score:
https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.sansarlochan.in%2F&tab=mobile

and suggest me the best

Hi Sansar,

Thank you for writing in, the PageSpeed Insights report did not tell the document.write() is coming from the Theme. It looks like it’s coming from your ads.

Please do a testing removing all your ads script. It’s also possible that is coming from one of your plugin, please do a plugin conflict test as well.

Cheers,

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.