GridVids
Sign in with YouTube

How To Fix Excessive DOM Size Slowing Down Your WordPress Website

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

WPCrafter.com WordPress For Non-Techies 5 years ago
Chapters

Is Google PageSpeed Insights warning about an excessive DOM size on your WordPress site? Here's the fix. See how to build the same layouts with far fewer containers, in Elementor and in the block editor with Kadence Blocks.

Most of us lay out pages with more containers than we need. A heading on the left and an image on the right usually becomes a section with two columns: three containers for two elements. That means more code and a slower page.

In Elementor, you put both elements in one column and set each one's width to Inline under Advanced, Positioning. Then use the column's horizontal align (space between, space around or space evenly) and vertical align to lay them out.

In the block editor (Gutenberg) it's even easier with the Kadence Blocks plugin, which is free. Add a one-column Row Layout, open the section settings, switch Inner Block Direction from vertical to horizontal, and pick a Justify Content option.

Then I build a grid of six info boxes inside a single container, a layout that would normally take several rows and columns.

Fewer containers means less code, a leaner page for your visitors, and better scores when Google tests your site.

MY PRODUCTS SureCart (ecommerce for WordPress) https://www.wpcrafter.com/surecart SureMembers (memberships) https://www.wpcrafter.com/suremembers SureDash (communities and courses) https://suredash.com/ OttoKit (automation) https://www.wpcrafter.com/suretriggers Presto Player (video) https://www.wpcrafter.com/prestoplayer ZipWP (AI website builder) https://www.wpcrafter.com/zip

RECOMMENDED HOSTING ZipWP Managed Hosting https://zipwp.com/managed-hosting/ Hostinger https://www.wpcrafter.com/hostinger Cloudways https://www.wpcrafter.com/cloudways

CHAPTERS

Which page on your site do you think has the most containers? Subscribe for more WordPress tutorials. All of the opinions expressed in this video are my own, I was not paid to make this video. Whenever there is a link in any of my videos, if there is a referral program available, please assume that you are clicking on a referral link.