Archived topic
Reduce excessive DOM size
1 reply · Started by Bob on March 24, 2021
On two of my top visited pages
https://www.tawcan.com/dividends
https://www.tawcan.com/best-canadian-dividend-stocks/
I'm getting Avoid an excessive DOM size warning on Google PageSpeed (>2500 elements). Similarly on GTMetrix I'm getting the same warning on my main page.
Are there ways to reduce the number of DOM elements? I'm not sure if this is caused by one of the plugins I'm using or not.
Hi there,
Are there ways to reduce the number of DOM elements? I’m not sure if this is caused by one of the plugins I’m using or not.
Generally, the way to deal with this is to reduce the number of contents you've added to the page/post.
If it's possible to put all things in 1 block, go for it.
If you've added forms that you find unnecessary now, remove them as well.
This is pretty tricky to do considering the context of your site as the contents added are a lot and it looks like all of them are important.
If you can rewrite your content to make it shorter, that would be very ideal to reduce the number of elements.