Elementor

Elementor Performance Optimization Without the Guesswork

Elementor performance optimization means reducing the CSS, fonts and widget markup Elementor emits on the frontend without changing the design. In my builds at webdev-saif.com I audit widget count, switch CSS output to external files, self-host only the fonts in use, and disable experiments the layout never touches. The result is a smaller DOM and a page that clears a Core Web Vitals budget.

By Saif Al Jahanwebdev-saif.com

What Elementor performance optimization actually targets

Elementor performance optimization is not one switch. It is the sum of choices that decide how much markup and how many stylesheets the browser must download, parse and paint before a page becomes interactive. Elementor stores a page as JSON in the `_elementor_data` post meta and compiles that tree into a per-post stylesheet at `wp-content/uploads/elementor/css/post-{ID}.css`. Every widget adds a wrapper, a set of generated CSS rules and often an icon font or script. On a page with fifty widgets that accumulated DOM depth and CSS volume show up first as a slow Largest Contentful Paint, then as poor Interaction to Next Paint. I treat the editor as a design tool and the frontend as a performance budget: the same layout should ship with only the assets it actually uses.

Audit widget count before touching settings

Start with the rendered page, not the Elementor settings screen. Open the frontend in DevTools, run a coverage report on the Stylesheets panel, and look at how much of the generated `post-{ID}.css` is unused. Then count widgets directly in the database rather than by eye: each entry in the `_elementor_data` JSON has a `widgetType`, so a short WP-CLI command or SQL query over that column gives an exact count and flags duplicate widgets. In my work I compare two pages with the same visual result — one built from twenty small widgets, one from six well-structured ones — and keep the one with fewer nested `elementor-widget-container` wrappers. A smaller tree is easier to parse, cheaper to restyle and less likely to cause layout shift when fonts arrive.

  • Count `widgetType` entries in `_elementor_data` per page
  • Check stylesheet coverage in Chrome DevTools
  • Replace repeated icon + heading + text stacks with one widget
  • Keep container nesting at four levels or fewer as a practical target
  • Compare DOM node totals before and after each change

Control Elementor CSS output

Elementor writes CSS in two ways, controlled by the `elementor_css_print_method` option: `internal` (inline in the document head) or `external` (a separate `post-{ID}.css` file). On most builds I choose external, because the file caches across requests while inline CSS is re-downloaded with every HTML response. The cost is one extra request, which matters less once HTTP/2 or HTTP/3 is in play. To stop widget styles you never use from loading, hook `elementor/frontend/after_enqueue_styles` and dequeue the matching handles with `wp_dequeue_style()` — for example when a build has no form widget, no price table and no icon sets. Keep those rules in a small must-use plugin so theme updates cannot overwrite them, and re-check the editor screen, because dequeuing too aggressively can strip editor styles.

  • Set `elementor_css_print_method` to `external` for cacheable CSS
  • Dequeue unused widget handles on `elementor/frontend/after_enqueue_styles`
  • Remove `elementor-icons` and `font-awesome` when no icons are used
  • Keep overrides in `mu-plugins`, never in Elementor core files
  • Re-check the editor after every dequeue rule

Load fonts deliberately, not by default

Fonts are a common hidden cost. Elementor can enqueue Google Fonts globally, and each family, weight and style adds a stylesheet request and a font file. I keep the typography system to two families, pick the exact weights in use instead of a blanket `400,500,600,700` stack, self-host the files with `font-display: swap`, and add a single `preload` for the primary face. Elementor exposes the `elementor/fonts/additional_fonts` filter for registering self-hosted families so they appear in the typography controls rather than being hard-coded in CSS. Where a locally hosted Google Fonts option exists in Settings, I enable it to remove the third-party request. I then watch the Network panel for a flash of unstyled text and confirm the font files are served with a long `Cache-Control` max-age.

  • Two families, only the weights actually used
  • Self-host with `font-display: swap` and one preloaded face
  • Register families via `elementor/fonts/additional_fonts`
  • Remove unused uploaded fonts from Elementor settings
  • Verify long `Cache-Control` values on font files

Experimental features to disable — and the ones to keep

Elementor Settings > Experiments ships features behind flags, and several are worth leaving off on a performance-focused build. Additional Custom Breakpoints adds extra media queries to every widget CSS output; if the design uses only the default desktop, tablet and mobile widths, keep it disabled. Container, CSS Grid and similar layout experiments change how markup is generated — enabling them mid-project often leaves duplicated wrappers and two sets of rules. On the other hand, I enable the experiments labelled Optimized CSS Loading and Image Loading Optimization in versions where they are available, because they cut render-blocking CSS and add lazy loading with `fetchpriority` hints. Labels and keys change between releases, so I read the installed version and change one experiment at a time on staging.

  • Disable Additional Custom Breakpoints unless extra widths are designed
  • Disable Container and CSS Grid experiments on widget-only builds
  • Enable Optimized CSS Loading where your version offers it
  • Enable Image Loading Optimization for lazy loading and fetchpriority
  • Change one flag at a time on staging, then measure

Measure against a Core Web Vitals budget

Measure against numbers, not impressions. I test a throttled mid-range Android profile in DevTools and record Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift on three consecutive loads. The practical targets are LCP under 2.5 seconds, INP under 200 milliseconds and CLS under 0.1, and I treat the field data in Search Console's Core Web Vitals report as the final verdict because lab runs are optimistic. A widget reduction that removes 200 DOM nodes but does not move LCP is not worth the design compromise. I keep a short before-and-after table in the project notes so the next change starts from evidence rather than memory.

Where the trade-offs sit

The main trade-off is editorial freedom. Every rule that improves performance — fewer widgets, fewer fonts, dequeued styles, disabled experiments — removes something an editor could otherwise add on a whim. I document the allowed widget set and the typography scale in a one-page build note so the client can still edit content without undoing the budget. The second trade-off is caching: external CSS files and self-hosted fonts only pay off when page caching and browser caching are configured, so I check that HTML, CSS and font assets carry sensible `Cache-Control` values. Finally, I do not optimize a live store during a campaign — test on staging, ship in a deployment window, and watch field data for a week. I take this work from Mymensingh, Bangladesh for teams that want Elementor speed without a rebuild.

Frequently asked questions

Does Elementor make a WordPress site slow?

Elementor itself is not inherently slow, but it emits a wrapper and generated CSS for every widget, and it can enqueue fonts and icon styles you never use. A page built from dozens of small widgets grows a deep DOM and a large `post-{ID}.css` file. Optimizing widget count, CSS delivery and font loading closes most of that gap without changing the visible design.

Should Elementor CSS be inline or external?

I use external CSS on most sites. Elementor's `elementor_css_print_method` option controls this: `external` writes a cacheable `post-{ID}.css` file, while `internal` inlines the rules in the HTML head. Inline avoids one request but is re-downloaded with every page view. With HTTP/2 or HTTP/3, the cached external file is usually the better choice.

How many widgets is too many on an Elementor page?

There is no fixed number; what matters is the rendered DOM and CSS weight. As a practical target I keep the main content area to a few hundred element nodes and avoid nesting containers more than four levels deep. Count `widgetType` entries in `_elementor_data`, then watch LCP and INP — if a page misses the budget, merge repeated widgets first.

Which Elementor experiments should I disable for speed?

Disable experiments the layout does not use. Additional Custom Breakpoints adds media queries to widget CSS, so leave it off if you only design for desktop, tablet and mobile. Container and CSS Grid experiments can create duplicate wrappers on widget-only builds. Keep Optimized CSS Loading and Image Loading Optimization enabled where your version offers them.

Will these changes break the Elementor editor?

They can if you dequeue global styles the editor also relies on. I put dequeue rules in a must-use plugin, test both the frontend and the editor after each change, and never edit Elementor core files. Widget-count and font changes are safe editor-side; style-dequeue rules need the most checking.

Written by Saif Al Jahan, webdev-saif.com · Mymensingh, Bangladesh. Last updated .