Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Elementor or Divi loading every widget's assets on every page

PRF-015Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A page builder gives you a library of ready-made widgets (Elementor) or modules (Divi): sliders, tabs, counters, pricing tables, forms and more. Each one needs CSS and often JavaScript. In some setups the builder loads the code for the whole library on every page, not just for the widgets that page uses.

Why it costs you leads or sales

Visitors from ads decide fast. If the hero takes longer to show because the browser is busy downloading and parsing unused CSS and JavaScript, more people leave before they see your offer or form. On mobile networks and mid-range phones the effect is bigger, because parsing code takes longer on slower processors.

How unused widget code delays the page
  1. Visitor clicks adLanding page request starts
  2. Builder assets loadCSS and JS for every widget are requested
  3. Hero paints lateLCP is pushed back
  4. Form usable lateSome visitors have already left

The browser must handle assets for widgets the page never uses before it can paint the hero.

Page weight before and after trimming assetsExample numbers
Page weight before and after trimming assets (example)Before: 1,400 KB; After: 600 KB05371,0731,400600BeforeAfterKB

Example: a simple landing page's total code weight (CSS + JS) before and after asset loading is trimmed. Your numbers will differ.

How to check if your site has it

Check a landing page for unused builder assets
  1. Open the page in Chrome

    Use a private window so extensions do not add noise. Open DevTools with F12.

  2. Look at the Network tab

    Reload with the Network tab open and filter by CSS, then JS. Look for files from /wp-content/plugins/elementor/, elementor-pro, or the Divi theme (/wp-content/themes/Divi/). Note the total transferred size at the bottom.

  3. Check Coverage

    Press Ctrl+Shift+P (Cmd+Shift+P on Mac), type Coverage, choose Show Coverage, then reload. Red bars show the share of each file that was not used on this page.

  4. Compare with the widgets you use

    If the page has a heading, text and a form but you see CSS for sliders, carousels, tabs and galleries, the builder is loading more than needed.

  5. Run Lighthouse

    In DevTools open Lighthouse, run a mobile test and read the audits Reduce unused CSS, Reduce unused JavaScript and Largest Contentful Paint element.

How to fix it

The fix depends on the builder. Both Elementor and Divi have settings that load only what a page needs. Back up your site or use a staging copy first, since changing asset loading can alter layout.

Trim page builder assets
  1. Elementor: enable optimized loading

    Go to Elementor > Settings > Features. Set Optimized Assets Loading, Optimized Gutenberg Loading and Improved CSS Loading to Active (names and availability vary by version; some may already be default). Also set Element Caching if offered.

  2. Elementor: remove what you do not use

    On Elementor > Settings > Features or Elements (Elementor Pro and some add-ons), disable widgets you never use. Deactivate add-on packs you do not need.

  3. Divi: turn on dynamic assets

    Go to Divi > Theme Options > Performance. Enable Dynamic CSS, Dynamic Icons, Dynamic JavaScript Libraries and Critical CSS where available. Clear the Divi static CSS cache afterwards.

  4. Regenerate and clear caches

    In Elementor use Tools > Regenerate CSS & Data. Then clear your caching plugin, server cache and any CDN cache.

  5. Test the page

    Re-run the Network and Lighthouse checks. Look at sliders, popups and forms to make sure nothing broke.

Dequeue a plugin script on one landing page (example handles)php
add_action( 'wp_enqueue_scripts', function () {
    if ( is_page( 'landing-offer' ) ) {
        // Replace the handles with the ones you find in the page source.
        wp_dequeue_script( 'example-slider-script' );
        wp_dequeue_style( 'example-slider-style' );
    }
}, 100 );
Landing page before and after

Before

  • CSS and JS for every widget load
  • Large share of code unused on the page
  • Hero appears after extra downloads and parsing

After

  • Only assets for widgets on the page load
  • Smaller CSS and JS payload
  • Hero paints sooner, form is usable sooner

How to confirm it's fixed

After you change settings
  • Network tab shows a smaller total of CSS and JS than before
  • Coverage shows fewer red (unused) bytes in builder files
  • Lighthouse mobile LCP is lower, or at least not worse
  • The form submits and the thank-you page or event still works
  • Sliders, tabs, popups and menus on the page still work
  • No new errors in the browser console

How to prevent it happening again

Keep builder pages lean
  • Keep the asset-loading settings on after builder updates; re-check them when you upgrade
  • Add widgets to funnel pages only when they earn their weight
  • Avoid installing add-on packs that register dozens of widgets you do not use
  • Test every new landing page with Lighthouse on mobile before sending ad traffic
  • Re-check page weight after plugin, theme or builder updates
  • Clear caches after changes so you measure the real result

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It checks page weight on your funnel steps as the robot visitor runs them, so a page that grows heavy after a builder update or a new add-on can show up. It does not work out which widgets or builder assets are unused, and it does not tell you which CSS or JavaScript files to remove.

Questions people ask

Why is my Elementor page so slow?

Common causes are large images, many widgets, and CSS and JavaScript for widgets the page does not use. Enable Optimized Assets Loading under Elementor > Settings > Features, remove unused add-ons, and compress the hero image. Then re-test with Lighthouse on mobile.

Does Elementor load all widgets on every page?

It can, depending on version and settings. Newer versions have features such as Optimized Assets Loading that load widget code only when a page uses it. Check the Network tab to see which Elementor files load on your page.

How do I stop Divi loading all modules on every page?

Go to Divi > Theme Options > Performance and enable Dynamic CSS, Dynamic JavaScript Libraries and Dynamic Icons. Then clear the Divi static CSS cache and your caching plugin. Test the page afterwards to make sure modules still work.

How can I see which CSS and JS my page does not use?

Open Chrome DevTools, press Ctrl+Shift+P (Cmd+Shift+P on Mac), run Show Coverage and reload the page. Red bars show how much of each file was not used. Lighthouse also lists Reduce unused CSS and Reduce unused JavaScript.

Will removing unused page builder assets break my page?

It can if a script is still needed by a widget, popup or form. Make changes on a staging copy where possible. After each change, load the page, test the form and check the browser console for errors.

Does page builder bloat affect Largest Contentful Paint?

Yes. Large CSS and JavaScript files can block rendering and compete for bandwidth and processing time, which delays the hero element that usually sets LCP. Trimming them often helps, though image size and loading also matter.

Can FunnelGuard tell me which Elementor widgets are unused?

No. FunnelGuard checks page weight on your funnel steps, so it can show when a page gets heavier, but it does not identify unused widgets or assets. Use Chrome Coverage and Lighthouse to find those.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: page weight only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.