Skip to main content

CSS & JS Minification

What it does

Asset minification reduces CSS and JavaScript file size and can combine files into fewer requests. Nitro 5 adds Smart Minify suggestions and a Frontend Asset Helper in the admin bar so you can review handles, apply safer queues, and clear minify cache.

Minify settings are stored separately from the rest of Nitro (nitro_options). Import / Export backs up divi-nitro_options — re-apply minify queues after a settings import if needed.

Where to find it

Divi Engine → Nitro Settings → Scripts & CSS → Minify

If minify is hidden, DIVINITROMINIFY_OPTIONS is defined in wp-config.php and locks queues in code.

Quick start

  1. Enable the Frontend Asset Helper.
  2. Open the homepage on the front end and choose Divi Nitro → Asset Helper in the admin bar.
  3. Review scripts and styles. Prefer Smart Minify suggestions.
  4. Enable script and/or style minification and apply suggested queues (merge or replace).
  5. Click Clear Minify Cache, save, and test logged out.

Enable the Frontend Asset Helper

tip

The helper hides admin-only items, keeps Divi Engine scripts out of public queues, and pre-checks items already queued. Presets do not change minify queues.

Settings

SettingTypeDefaultWhat it does
Enable Asset HelperToggleOffShows the frontend overlay for admins so you can copy handles and record a scan for Smart suggestions
Clear cacheButtonDeletes minify cache files
JavaScript minificationRadioDisabledEnable to combine listed JS handles
JS queuesText (one or more)emptyComma-separated handles per queue. Use Add queue for extra groups
CSS minificationRadioDisabledEnable to combine listed CSS handles
CSS queuesText (one or more)emptyComma-separated stylesheet handles
Smart suggestionsActionsAfter an Asset Helper scan: merge into current queues or replace them. Items on the do-not list stay out
Inline minificationRadioDisabledMinifies inline HTML/CSS/JS. Enable only after queues are stable — see HTML Minification

Manual queue workflow

  1. Copy handles from the helper’s JavaScript or CSS lists.
  2. Paste them into the queue fields.

Copy a script handle from the helper

  1. Save and clear minify cache.
  2. If something breaks, follow Minify troubleshooting.

Important defaults

  • Divi Engine scripts stay out of Minify (and Delay JavaScript) by default.
  • Do not also minify/combine the same assets in LiteSpeed, WP Rocket, or WP-Optimize.

What's Next