1. Home
  2. Blog
  3. Performance

Speed Up an Elementor, Divi or Bricks Site Without Breaking the Builder

Performance

October 20, 2026

Page builders are the reason many WordPress sites exist at all. Elementor, Divi and Bricks let a designer ship a polished site without writing a theme. They are also the reason many of those sites feel slow: large stylesheets that cover every widget, scripts for sliders and animations, hero images placed by the builder rather than the theme, and templates that change dozens of pages at once.

You do not have to give up the builder to fix that. This use-case guide shows how to speed up a page builder site with Lightify, the DaftPlug performance plugin, in an order that keeps the layout intact. Everything here comes from the Lightify documentation and its 1.4.0 release on WordPress.org. Where something is general web knowledge rather than plugin behavior, it is labeled as such.

Why builder sites need a different order

On a hand-coded theme, you can switch on most optimizations at once and fix the odd break. On a builder site, the same settings collide with how builders work:

  • Templates are shared. A header, footer or single-post template built in the builder affects every page using it, so a stale cache shows up everywhere at once.
  • The CSS covers everything. Builders ship styles for every widget and state. The Lightify docs note that most themes ship one stylesheet covering every page and every state, and builders are the extreme case.
  • Interactive widgets hide their styles. Menus that open on click, popups, accordions and tabs are invisible when a page is first analyzed.
  • The hero is often injected. The docs warn twice that a hero image added by a page builder can slip past Lightify’s automatic protection against lazy-loading the first images.

So the plan is: get caching and purging right first, then add the CSS and JavaScript work one setting at a time, then fix images.

Step 1: confirm the builder integration is doing its job

Lightify purges cached pages automatically when content changes. Publishing or editing a post clears that post and the pages that list it. For builders there is an extra layer. According to the integrations guide, saving a template purges the whole page cache, because a template change affects every page using it rather than only the post you edited.

The covered template systems are listed in the docs:

Builder or editorTemplate saves purge the cache
ElementorYes, and Elementor’s CSS regeneration is hooked separately
DiviYes
BricksYes
OxygenYes
Beaver BuilderYes
BreakdanceYes
BrizyYes
Gutenberg templatesYes

These integrations are free and have no settings. Lightify detects what is present and hooks in.

If your builder or a theme stores templates in a custom post type that is not on that list, register it with the documented filter so saving it purges too:

add_filter('lightify_page_builder_template_post_types', function ($postTypes) {
    $postTypes[] = 'my_custom_template';
    return $postTypes;
});

Test it. Edit a small detail in your header template, save, and load a page in a private window. If the change shows, purging works. If it does not, purge manually from the admin bar and check whether a host cache or CDN sits in front of Lightify. The docs list automatic purge support for Cloudflare (through the official Cloudflare plugin), Varnish, and managed hosts including Kinsta, WP Engine, SiteGround, Cloudways with Breeze, RunCloud, SpinupWP, GridPane, Rocket.net and the WordPress.com edge cache.

Step 2: turn on the page cache and preloading

A builder page is expensive to generate, which makes full-page caching the biggest single win on these sites. The free version of Lightify includes the page cache, a separate mobile cache, page exclusions and the browser cache, with nothing on the Cache tab gated.

Two details matter on builder sites:

Preload after big template changes. Because a template save purges everything, the next visitors would each pay to rebuild pages. The admin bar has Purge cache and preload, which clears everything and warms it again. Preloading visits your pages in the background with a delay between requests, so it does not overwhelm the server.

Check the cache is really serving. Lightify adds an x-lightify-cache response header, which you can check from a terminal (on Apache without mod_headers the header is skipped even though caching works, so look for files under wp-content/cache/lightify/ instead):

curl -sI https://example.com/ | grep -i x-lightify

Lightify 1.4.0 added a cache lifespan setting (default 10 hours, expired pages cleared about hourly and warmed in the background). For a builder site where most edits happen through templates, which already trigger a purge, the default is a reasonable place to start.

Step 3: remove unused CSS, then teach it about your widgets

Remove Unused CSS is Pro, and the docs call it usually the largest single improvement available. It loads only the CSS the initial view actually uses and defers the rest until the visitor interacts. On a builder site, that can mean dropping styles for dozens of widgets a page never uses.

It is also the setting most likely to break a builder layout, for a predictable reason. The analysis sees the page as it first appears. Anything hidden until the visitor acts looks unused: mobile menus, popups, dropdowns, accordions and tabs. The fix is CSS Inclusions, a list of selectors or keywords to force into the generated CSS, one per line:

.mobile-menu
.modal
is-open

Here is a working routine for a builder site:

  1. Enable Remove Unused CSS and choose Purge everything from the admin bar, because cached pages were built under the old settings.
  2. Open your busiest templates on a phone and a desktop: home, a single post, a product page, a landing page.
  3. Open every interactive widget: the mobile menu, any popup, each accordion and tab set, any off-canvas cart.
  4. When one renders unstyled, inspect it, find its wrapper class, and add a keyword from it to CSS Inclusions.
  5. Purge and repeat until nothing is missing.

The class names your builder uses for menus, popups and toggles depend on the builder and version. Inspect them in your own browser rather than copying a list from someone else’s site.

Step 4: defer your scripts, delay third-party tags

Builders load a fair amount of JavaScript for sliders, carousels, animations and popups. Lightify has two settings for scripts, and the docs warn that they are often confused:

Defer JavaScriptDelay JavaScript Execution
Runs the scriptAfter HTML parsingAfter the visitor moves, scrolls or taps
RiskModerateHigher
Right forYour own scriptsThird-party tags
PlanFreePro

Defer first. Defer is free and lets the page render while scripts download. The docs name its usual failures: scripts that expect to run in order, or expect jQuery to be ready at a specific moment. When a slider, tab set or menu stops working, add a fragment of its filename to the defer Exclusions:

jquery.min.js
slider

Delay only what visitors did not ask for. Delay holds scripts until the first interaction. The docs say it is the right tool for analytics, chat widgets, ad scripts and heatmaps, and give one firm rule: never delay a script that renders visible content. A delayed slider is an empty space until someone moves the mouse. On a builder site, that means your hero slider, animated headline or above-the-fold carousel scripts belong in the delay exclusions.

If something only appears after you move the mouse, the docs describe that as delayed JavaScript working as designed. Exclude that script.

Step 5: protect the hero image the builder placed

Images are usually the largest thing on a page and the usual LCP element. Lightify excludes the first couple of images from lazy loading automatically (the default count is 2), because lazy-loading your hero delays the exact thing LCP measures. The docs warn that a hero injected by a page builder can slip past that protection.

Check it on your main templates:

  1. Open the page, inspect the hero image, and look for loading="lazy" on it.
  2. If it is there, raise the count with the documented filter. The docs’ own example uses a full-width hero:
add_filter('lightify_lazy_load_above_fold_count', function () {
    return 4;
});
  1. With Pro, Preload Critical Images finds the largest above-the-fold image and tells the browser to fetch it immediately. The docs warn that preloading and lazy loading fight each other, so fix the lazy attribute first.

Two more image settings help builder layouts directly. Properly Size Images (free, on by default) makes images load at correct dimensions so content does not jump, which improves CLS. YouTube Video Previews (Pro) replaces an embed with its thumbnail and loads the player on click, which the docs describe as often the largest single improvement on pages with several embeds. Builders make video backgrounds and embed widgets easy to add, so check your landing pages for them.

Step 6: be careful with layout and rendering tricks

Two HTML settings need extra testing on builder pages.

Prevent Layout Shifts (free) keeps the page hidden until it is fully parsed, then reveals it at once. The docs describe the trade honestly: it swaps LCP for CLS, because the largest paint happens later but in its final position. Whether it helps depends on your theme, so measure before and after.

Lazy Render Elements (Pro) skips rendering blocks until they are needed. Long builder landing pages with in-page anchor menus are exactly where it bites: an element that has not rendered cannot be scrolled to. If anchor links land in the wrong place, raise lightify_lazy_render_skip_count or add the container to the exclude keywords.

Also leave Disable Block Editor CSS off if any of your content still uses Gutenberg blocks. The docs say it removes the styles block layouts depend on.

Step 7: fonts

Builders make it easy to pick Google Fonts in the style panel. Lightify’s Preload Fonts is free and on by default. Pro adds Self-Host External Fonts, which downloads external fonts, most often Google Fonts, and serves them from your domain, and Use System Fonts First, which shows a system font until yours loads. The docs note the trade-off: a visible swap when the real font arrives, which counts as layout shift if the two fonts have different metrics.

When something breaks

The Lightify troubleshooting guide gives a three-step routine that suits builder sites well:

  1. Purge everything. Cached pages were built with the old settings.
  2. Identify the feature. Turn off the last one you enabled and purge again.
  3. Exclude, do not disable. Add the file or selector to that feature’s exclusion list. Losing one script from an optimization is much better than losing the optimization.

The conflicts table in the docs is also worth a look: run one page cache and one minifier only, turn off a CDN’s own optimizer if it minifies again, and turn off Cloudflare Rocket Loader, which fights with defer and delay.

How to measure the result

Lightify’s score is built from real visitor measurements on your cached homepage, so it needs traffic and time. A lab test such as PageSpeed Insights will disagree with it, and the docs explain why: one is a throttled lab run, the other is what visitors experienced. Use the lab test to find your LCP element on each template, and Lightify’s Core Web Vitals monitoring to confirm visitors actually got faster.

Free and Pro on a builder site

The free version covers the parts that make the biggest structural difference: page cache with builder template purging, preloading, minification, deferred JavaScript with exclusions, lazy loading and proper image sizing. Pro adds the builder-specific heavy lifting: unused CSS removal with inclusions, delayed JavaScript, WebP conversion, critical image preloading, YouTube previews and self-hosted fonts.

Pro comes with the DaftPlug membership, which also covers Progressify, Generatify, Crownify and Snapshotify. Plans start at $37.99 a year for one site, with a 14-day money-back guarantee. See the options on the DaftPlug pricing page.

For the CSS step in more depth, read how to strip unused CSS from WordPress templates without breaking layouts.