Hi @europapost
I hope you’re well today and thank you for your question!
The screenshots that you share show that the DOM size is considered too big but they don’t confirm that the Forminator is actually causing “excessive DOM”. Test with switching Forminator on/off will only confirm that Forminator does add-up to DOM size which is expected since it’s actually adding forms and scripts to the site.
I’ve done a simple test on one of my test sites: up to date WordPress with no plugins enabled and only default Twenty Twenty-One theme. The results in PageSpeed Insights:
1. Forminator disabled
– form page (where single simple form would be here if plugin was enabled) – 191 elements
– homepage without form – 620 elements
– audit passed
2. Forminator enabled:
– form page (single simple form) – 308 elements (so 117 more as without plugin)
– homepage without form – 620 elements (same as without plugin)
– audit passed
How many elements it will add to the given site/page, however, depends on how complex are the forms and how many of them are there. The overall size of DOM also depends on theme and other plugins as well.
However, this seems to be related to very specific part of Forminator form actually which is the country list which indeed adds a lot of elements, causing the “child nodes” number to go way above the limit. But that’s something that’s rather hard to avoid if the country list field is expected to be there.
Unfortunately, I couldn’t replicate the behavior of excessive DOM on pages without forms. I see that there are forms on your site in footer and that seem to be from other plugin than Forminator. Could you point me to some page on your site that does contain Forminator form currently then so I could take a look at that and compare it with other pages?
I’d like to check it to, hopefully, see why it also adds all that DOM on pages without the form as I can’t replicate this on my end.
Best regards,
Adam