Since the new Google update in may there always appears the notice that you should avoid document.write() to embed code from third parties like AdSense. Document.write() is marked as a serious mistake. Do you know something about it?
Greetings Kathrin
I really believe that this document.write() is the main problem for the higher scores shwon in the Field Data and in the Origin Sumary fields in Page Speed Insigths.
My socres are good in the Lab Data, but not that good in those others and i do use Wp Rocket, Cloudflare Pro and the Automatic Platfrom Optimization from Cloudflare (APO): https://support.cloudflare.com/hc/en-us/articles/360049822312-Understanding-Automatic-Platform-Optimization-APO-with-WordPress
GTmetrix show that “for users on slow connections, external scripts dynamically injected via document.write() can delay page load by tens of seconds”.
So, i think that the theme need an urgent update, specially before may 2021, otherwise we gonna have to change the theme, and i do not want to do that because i like the Newspapper a very LOT.
Solution: https://headline.dev/tech/solved-how-to-fix-document-write-errors-in-wordpress-newspaper-theme/
That did not worked and i’m still waiting for the theme developers…
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
-
This reply was modified 5 years by
rafael-l.
Hey, Vlad, when you said mid-week, I halted migrating to another theme to wait for your update. What happened?
still document.write() error is remain please update us.
url: https://www.learningall.com/
https://pagespeed.web.dev/analysis/https-www-learningall-com/0b8ip9p2as?form_factor=desktop
Hi,
I saw that on your website the document.write() comes from ads -> https://i.imgur.com/VEqbB7t.png
The page loading speed can depend on many factors, and each website is unique from this point of view. Let me explain some of these factors and maybe they give you some starting points for optimizing your website. A good choice for the page speed, could be the mobile layout which contains fewer elements because it can improve a bit your page speed.
There are many optimization guides provided by our users here in the forum, some made by us; you could check some of them
– https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/cache-plugin-install-and-configure/
– https://forum.tagdiv.com/how-to-make-the-site-faster/
– https://forum.tagdiv.com/topic/high-number-of-ajax-request/
– https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
– https://www.andraware.com/wp-rocket-for-newspaper-theme/
– https://forum.tagdiv.com/topic/page-speed-guide-for-2023-beginners-and-advanced/
– https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
– https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
– https://forum.tagdiv.com/cloudflare-cdn/
– https://forum.tagdiv.com/topic/theme-causing-high-cpu-usage-2/
– https://forum.tagdiv.com/topic/sql-querys-high-cpu/
– https://forum.tagdiv.com/topic/newspaper-theme-slow-to-respond/
– https://premium.wpmudev.org/blog/optimizing-your-wordpress-database-a-complete-guide/
– https://underconstructionpage.com/optimize-wordpress-database/
– https://crunchify.com/better-optimize-wordpress-database-all-in-one-guide/
Also, pagespeed is not covered by support -> https://forum.tagdiv.com/newspaper-theme-support/
If you use Wp Rocket, you can try to exclude the following files
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
/wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js
tdBlocksArray
To be able to optimize and to remove CLS and LCP please check these guide => https://developers.google.com/web/tools/lighthouse/ -> https://www.sqlpac.com/en/documents/google-pagespeeds-lighthouse-6-new-features-lcp-cls.html -> https://web.dev/lighthouse-whats-new-6.0/ -> https://web.dev/lcp/ -> https://web.dev/cls/
Thank you!
