Optimize Frontend Scripts

Optimize Frontend Scripts

This plugin is built for WordPress site owners who want a faster, leaner website without digging into code. Whether you’re a developer looking for a reliable performance tool or a client who just wants their site to load quicker, this plugin does the heavy lifting for you.

What it does

When WordPress loads a page for your visitors, it often brings along a bunch of scripts and styles that are only needed in the admin area — things like the block editor, TinyMCE, and media upload tools. Your visitors never use any of that, but their browsers still have to download it. This plugin quietly removes those unnecessary files and defers non-critical JavaScript so your pages load faster and feel snappier.

Who it’s for

  • Site owners who want better performance without touching code
  • Developers who want a lightweight, filterable solution they can build on
  • Anyone running a WordPress site that doesn’t rely on the classic editor or media scripts on the frontend

Technical details

  • Dequeues and deregisters unused Gutenberg, TinyMCE, and media-related scripts and styles on the public frontend
  • Adds a defer attribute to non-essential JavaScript files to improve load order
  • Leaves jQuery and related handles untouched by default
  • Fully filterable via ww_scripts_to_dequeue, ww_styles_to_dequeue, and ww_defer_exclude_handles — so developers can customize behavior without editing the plugin
  • Has no effect on the WordPress admin, Customizer, or any logged-in editor experience

Version: 1.2 | Author: René Michaels  | License: GPL2+