Code & Script Optimization

Plugins that remove bloat, unload unused scripts and styles, and delay JavaScript so pages render faster.

All

Code & Script Optimization

5 listings

Most WordPress sites load far more code than each page needs. A contact form plugin loads its scripts on every page, not just the contact page. Your theme loads icon fonts you never use. Third-party chat widgets, analytics and embeds pile on top. This category is for the tools that clean that up.

What these tools do

  • Script manager / asset unloading: turn off specific CSS and JS files on pages that don't need them. This is the main feature of Perfmatters and Asset CleanUp.
  • Delay JavaScript until interaction: hold back non-critical scripts (chat, analytics, ads) until the visitor scrolls, taps or moves the mouse. Flying Scripts does only this, for free.
  • Minify and combine: shrink CSS, JS and HTML files. Autoptimize is the long-standing free option.
  • Remove unused CSS / critical CSS: generate just the styles needed for the first screen. RapidLoad focuses on this.
  • Disable WordPress bloat: emojis, embeds, dashicons on the front end, XML-RPC, the Heartbeat API and more.

Do you need one if you already have a caching plugin?

Often, yes. Caching plugins like WP Rocket and FlyingPress already minify files and delay JavaScript. What they don't do is unload a plugin's assets page by page. That's where a script manager earns its keep, especially on sites with lots of plugins or a page builder. Perfmatters is designed to run alongside a caching plugin. Just don't switch on the same feature (say, "delay JS") in both.

Go slowly

These are the tools most likely to break something. Change one setting, clear the cache, test the page logged out, and check menus, forms, sliders, cookie banners and checkout before moving on.

When code cleanup won't help

Script optimization speeds up rendering (what happens after the HTML arrives). It does nothing for how long the server takes to send that HTML in the first place. If your Time to First Byte is slow, look at your host.