Reduce inline CSS

Posted in: Newspaper
Post count: 4

Hi there,

I am getting some notifications from search console that my HTML-size is too long. Are there any ways to reduce the inline CSS or scripts? Or are there certain templates that don’t use as many?

I hope you guys can help me out!

Kind regards,

Renzo

Post count: 27744

Hello Renzo,

Please let me know what templates you use. If you have templates from the theme panel, please try using the cloud templates and disable the tagdiv standard pack plugin.
There are many optimization guides provided by our users here in the forum, some made by us; you could check some of them
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://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
https://www.andraware.com/wp-rocket-for-newspaper-theme/
https://spraythemes.com/newspaper-theme/how-to-speed-up-the-newspaper-wordpress-theme-using-wp-rocket/
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/

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

Thank you!

Post count: 4

Hi there,

Luckily the page isn’t really slow, but I was more concerned about the code to text ratio, but maybe that isn’t really a problem.

I am using:
Header Template 43 – Tech News PRO
Footer – Aramis
Default newspaper theme

Kind regards,

Renzo

Post count: 27744

Hello Renzo,

Can you please provide some screenshots about what you are referring to?
A solution for sending a screenshot/video is this:
Download, capture, and send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link; paste it here.

Thank you!

Post count: 4

Hey,

Here is a screenshot: https://www.detopproducten.nl/wp-content/uploads/2023/03/HTML-size-too-big.png

It is in Dutch but it basically says the HTML-size is too big. When I look at the file there is many elements with <style> (Many lines with CSS) </style>

Here is a additional screenshot with a example of the CSS code: https://www.detopproducten.nl/wp-content/uploads/2023/03/Inline-CSS.png

Post count: 35449

Hi Renzo123,
Referring to

elements, every element on the page has such a css (this approach was used because there are elements that can be used as many times as you want on a page and can have a different layout).
From what I can see on the home page, the DOM size is ok https://i.imgur.com/lzc6GnC.png
Thank you!

Post count: 4

Alright, it seems like I have nothing to worry about then! Thanks for the help and tips BTW.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.