Hello All,
In Lighthouse report for our website it provides recommendation: Avoid an excessive DOM size
When we create AEM components it adds some extra wrapper class thats why DOM is getting increased if there is page having more components.
Is there any way we can reduce DOM size? Like any setting in AEM to remove wrapper classes or datalayer classes.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Supriya,
To remove OOTB Generated divs you can add cq:noDecoration tag[1]
In case if Lighthouse will still revert with issues, you would need to further look into your application.
Please note, that blank page with normal content should pass test, but page with heavy content on it may always trigger error just due to sheet size of the page on node elements.
Regards,
Peter
Hi Supriya,
To remove OOTB Generated divs you can add cq:noDecoration tag[1]
In case if Lighthouse will still revert with issues, you would need to further look into your application.
Please note, that blank page with normal content should pass test, but page with heavy content on it may always trigger error just due to sheet size of the page on node elements.
Regards,
Peter
When a component is getting rendered on a page, an HTML element can be wrapped that component.
The reasons can be:
If you are trying to get rid of these, please be cautious and validate your components.
Are you observing this for OOTB WCM core components or custom components?
Views
Likes
Replies