- NewspaperAutoptimize Plugin – install and configuration
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspapertagDiv Composer – Website Manager
- NewspaperModules Builder in Newspaper Theme
- NewspaperThe Newspaper Mobile Theme: Introduction
- TutorialsFrom WPBakery to tagDiv Composer
- NewspaperBest Of Forums
- TutorialsWhat is Ajax preloading?
- NewspaperHow to Make the Site Faster
Hi,
If you want to make your website faster, you can do it using our guides from here: > https://tagdiv.com/how-to-increase-page-loading-speed/
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Let me know the results!
What’s up guys. I found a solution for the document.write() errors in Lighthouse/Gtmetrix site audits. I’ve done basic cross-platform testing [Firefox, Chrome, Microsoft Edge] and it cuts the mustard. For HEADLINE’s index (which optimizes through Td Composer, WP Rocket, Rank Math, and Asset CleanUp–I double-set the code:
1. At the top of HEADLINE’s head tag [sitewide] in the plugin “Headers and Footers Scripts” [Position 1].
2. At the top of the HTML tag in TagDiv’s theme panel [custom code][custom HTML].
I chose to double-set the {code-fix} because the Document.write() call is originating from Newspaper scripts and I don’t manage HEADLINE’s custom HTML there. I prefetch Google DNS Requests with WP Rocket and save custom HTML in “Headers and Footers Scripts.” The latter being hands-down the absolute best plugin to organize tags/add custom scripts and overwrite other plugins. I tested a number of {code-fix} arrangements and found that when I only set the {code-fix} in “Headers and Footers Scripts” that some of the Document.write(s) can slip through the cracks. Alternatively, if I only set the {code-fix} in the TagDiv theme panel, Wp Rocket’s Google DNS Requests override the custom HTML. So hierarchically, “Headers and Footers Scripts” can reposition the TagDiv custom HTML to take first-bite at the Document.write(s) while still allowing WP Rocket to prefetch the Google DNS.
I re-audited HEADLINE (with Lighthouse and GTMetrix) after optimizing the {code-fix} placement and HEADLINE’s speed/optimization scores shot way up–which actually makes sense if you think about what document.write() is really doing. Code calls for document.write() are telling the parser to rewrite the page mid-read, which can lead to bottlenecks and pose security concerns, especially when compared to security-heavy iframes or other delayable embeds.
Also, it’s worth noting that the document.write() code fix I’m using on HEADLINE is not exactly best-practices. In a perfect world, digital ads would natively load asynchronously. But until Newspaper and other themes drop support for document.write() altogether, AdjacentHTML will have to do.
If you guys want to check out a heavily-customized Newspaper site, head over to HEADLINE.dev. I’ve built a fully-responsive 4-screen Newspaper page, as well as a totally custom Amp site for mobile and desktop. Every single desktop page has a custom Amp version. I even built a one-of-a-kind Bootstrap form (Amp-compatible, Formidable Forms-based) called Funder by HEADLINE. I’ll be writing a series of articles, like this one, about how to optimize/extend the Newspaper theme.
I’d also like to mention that I am not a professional WordPress developer. There are all kinds of kinks I’m still working out with HEADLINE, but I feel so fortunate to be a part of the Newspaper community, and the TagDiv team is absolutely world-class! Take care guys.
Aaron Martinez
headline.dev
(script-tag)
document.write=function(s){
var scripts = document.getElementsByTagName(‘script’);
var lastScript = scripts[scripts.length-1];
lastScript.insertAdjacentHTML(“beforebegin”, s);
}
(script-tag-close)
The primary factor in page speed is load-efficiency. For example, you could be using relatively few mods and still get a bad page speed score if you aren’t implementing proper pre-load rules, modifications, etc. Alternatively, you could make hundreds of mods and get a 99% page speed score if you optimize it to oblivion. But as a rule of thumb, try not to use more than a few flex-blocks. Also, in TD Composer, hard-coded style mods you make will load slower than the external custom css sheet. So try to make site-wide css changes in the external style sheet so you can optimize it with your caching plugin. If you want to add plugin-based blocks, I’d recommend Genesis and to a lesser degree Advanced Gutenberg.
Hi, I am making my homepage and I finally got the phone viewport to look alright. But I noticed an option “edit mobile page” and everything i optimized in the phone viewport isn’t in the mobile page… what will people see on their phone? the phone viewport or mobile page?
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hello!
I checked your website and it seems you have installed Mobile theme plugin. The Mobile Theme is a performance optimized theme included in the Newspaper main theme and it loads only for mobile devices. It comes with it’s own templates for page, post, category, etc so your current templates from the desktop theme will get converted to the mobile theme layout. For more details, please take a look here: https://forum.tagdiv.com/the-mobile-theme/
Thank you!
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Editing any other page or template (except the home page) with the default builder creates a lot of problems everywhere. Sometimes the images are greyed out when I click on the media library from the builder. Sometimes the latest edited page becomes the home page. The following are the active plugins on the website:
Classic Editor
Post Views Counter
Really Simple SSL
reSmush.it Image Optimizer
Schema – All In One Schema Rich Snippets
tagDiv Cloud Library
tagDiv Composer
tagDiv Social Counter
tagDiv Standard Pack
UpdraftPlus – Backup/Restore
User Submitted Posts
WP User Frontend
Hello @csenaka!
I checked your website and it seems you have installed Mobile theme plugin. The Mobile Theme is a performance optimized theme included in the Newspaper main theme and it loads only for mobile devices. It comes with it’s own templates for page, post, category, etc so your current templates from the desktop theme will get converted to the mobile theme layout. For more details, please take a look here: https://forum.tagdiv.com/the-mobile-theme/
Please make sure that you have activated the proper thumbs for the mobile theme. The mobile theme requires the “265×198” and the “741×486” thumbnail sizes in order to show the featured images properly.
This can be found in here: https://www.screencast.com/t/N18dR3qZrh
After activating the thumbnail sizes you need to regenerate your thumbnails using a plugin. Check this: https://forum.tagdiv.com/using-the-theme-with-existing-content/
Thank you !
Hi, I know that we have users that use WP-Optimize Plugin with our theme, unfortunately I do not know the right settings that need to be made in order to work correctly, sorry!
Thank you for your understanding!
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
OK I beleive I found the culprit. We were also running WP-Optimize Plugin. Once I disabled that the error stopped and we haven’t seen it since. The only thing that puzzles me is that we have been using that plugin since we installed Newspaper in Feb. Thanks for your help.
So do you mean I have to delete autoptimize ?
Hi,
Unfortunately the page speed is a custom request, is not covered by support teem.
If you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Hope this will help you!
Let me know the results!
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hello !
1. That is the mobile theme. Please make sure that you have activated the proper thumbs for the mobile theme. The mobile theme requires the “265×198” and the “741×486” thumbnail sizes in order to show the featured images properly.
This can be found in here: https://www.screencast.com/t/N18dR3qZrh
2 & 3: The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hi,
Yes, you can comment one of them, and it is indicate to comment the first one -> https://i.imgur.com/QsXP8cd.png
Also if you want to optimize your website speed, please try those guides:
-> https://tagdiv.com/how-to-increase-page-loading-speed/ -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/
-> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
–> https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
–> https://tagdiv.com/how-to-increase-page-loading-speed/
Hope this will help you!
Let me know the results!
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hello !
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Dear team,
I am writing to point out an issue that already occurred several times, and that seems to be related to core plugins (composer and cloud library). It seems that PHP fatal errors are triggered by slow queries caused by the mentioned plugins (see logs reported below).
We are on cloud hosting with optimal resources for the average traffick we have, and we accomplished all the system requirements/settings and opmitizations (Leverage Browser Caching, Gzip compression, Optimize images, CDN, several caching levels, etc.).
Today we experienced the outage apparently for a very small peak of traffick (50 sessions), that in terms of resources is considered not problematic for server capacities by the hosting technical assistance. In any case we upgraded memory limit to 512mb (from 256mb) to mitigate the issue for the future.
However, I would kindly ask you to check the logs below to understand the root cause of the issue.
Looking forward to receiving your feedback, I am available for any test or additional information.
Thank you,
regards
Pietro
Website: https://ilcaffegeopolitico.net/
:::LOG BEGINS:::
[25-Nov-2020 10:05:33 UTC] PHP Fatal error: Out of memory (allocated 117735424) (tried to allocate 45056 bytes) in /var/web/site/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_menu.php on line 894
35873:[25-Nov-2020 10:05:40 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 2220573 bytes) in /var/web/site/public_html/wp-content/plugins/td-cloud-library/includes/tdb_functions.php on line 10
35874:[25-Nov-2020 10:05:43 UTC] PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate 40960 bytes) in /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2880
35875:[25-Nov-2020 10:05:43 UTC] PHP Fatal error: Out of memory (allocated 31457280) (tried to allocate 40960 bytes) in /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2880
35883:[25-Nov-2020 10:05:46 UTC] PHP Fatal error: Out of memory (allocated 18874368) (tried to allocate 40960 bytes) in /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2880
35884:[25-Nov-2020 10:05:46 UTC] PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate 20480 bytes) in /var/web/site/public_html/wp-includes/pomo/mo.php on line 323
35885:[25-Nov-2020 10:05:46 UTC] PHP Fatal error: Out of memory (allocated 16904192) (tried to allocate 32768 bytes) in /var/web/site/public_html/wp-content/plugins/td-cloud-library/includes/tdb_config.php on line 24694
35886:[25-Nov-2020 10:05:48 UTC] PHP Fatal error: Out of memory (allocated 67403776) (tried to allocate 131072 bytes) in /var/web/site/public_html/wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_mega_menu.php on line 387
36184:[25-Nov-2020 10:11:23 UTC] PHP Fatal error: Out of memory (allocated 2097152) (tried to allocate 20480 bytes) in /var/web/site/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_util.php on line 2880
:::LOG ENDS:::
Hello !
As you can see here your posts appear after search: https://www.screencast.com/t/aUrwb0ecw
The page speed of your website depends on how well your site is optimized, if you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/
For page speed and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/
Hope this will help you!
Thank you !
Hi,
Most of these “errors” are related to website optimize, for this you can check those guides: -> https://tagdiv.com/how-to-increase-page-loading-speed/
-> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
The H2 tag can be set using the Gutenberg editor or classic editor -> https://i.imgur.com/7vSa289.png for back-end and with tagDiv Composer -> https://i.imgur.com/tuAUrXm.png
Hope this will help you!
Thank you!
Hi,
Yes, the mobile theme plugin is still the faster version for mobile version. The mobile page is no faster as mobile theme plugin, but you can create a different content or template for mobile version and it is a little faster then responsive version. Also this new option is still in progress there are many elements that need to be optimize.
For the moment the faster mobile version with our theme can be achieve with mobile theme plugin, but in feature we hope that the mobile page bill be better.
Thank you for your understanding!
Hi,
If you follow the steps which are presented in this tutorial here -> https://tagdiv.com/how-to-increase-page-loading-speed/ you’ll be able to increase the speed of your website.
Also you can check this similar topic for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Hope this will help you!
Let me know the results!