Excessive DOM Elements Due to WordPress Comments
-
I am currently overhauling my website and am migrating posts and comments. I noticed when I ran speed tests on a post with 235 comments that I got dinged for an excessive number of DOM elements (as per GT Metrix and Google Page Speed Insights). See screenshot below:
At first I couldn’t figure it out. I deactivated all plugins and still had the issue.
When I created a duplicate post of the one above but WITHOUT the 235 comments, I ran the exact same scan and noticed that the problem went away. See follow up screenshot:
I’ve searched online and was unable to find anything on why WordPress comments would lead to excessive DOM elements on the page.
Thanks in advance for any pearls of wisdom.
Kind regards
- The topic ‘Excessive DOM Elements Due to WordPress Comments’ is closed to new replies.