Easily manage/block unused CSS/JS from loading on individual pages where all they do is create bloat and negatively impact page performance. Contributors: Robert Palmer Tags: performance, scripts, optimizer, Elementor, divi Requires at least: 5.8 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.10.0 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html
Scan, size, and safely block CSS/JS per page. Per-device + per-template rules, live savings counter, dry-run preview, and editor-safe mode for Elementor and other page builders.
== Description == Advanced Script Manager helps you load only what a page needs and block the unused junk:
- Lists all CSS/JS with file sizes and handles.
- Block per device (Any/Desktop/Mobile) and per template (Any/This Template).
- Dry-run preview (cookie-based) before saving.
- Editor-safe: skip blocking in Elementor editor; optional per-page disable.
- Hybrid server-side dequeue + client-side catch for late-injected assets and
@import
.
== Installation ==
- Upload
advanced-script-manager
to/wp-content/plugins/
. - Activate the plugin.
- (Recommended) Copy
mu-plugins/asm-blocker.php
to/wp-content/mu-plugins/
for the strongest blocking. - Go to Settings → Advanced Script Manager, pick a page, Scan assets, choose items, Preview, then Save.
== Frequently Asked Questions ==
= Where are the rules stored? =
Per-post meta key _asm_blocklist_v1
. A temporary cookie asm_preview_blocklist
is used for dry-run.
= Elementor compatibility? =
Blocking is automatically skipped in the editor (?elementor-preview=…
). You can also toggle “Temporarily disable blocking” per page.
== Changelog == = 1.10.0 =
- Per-page disable toggle + Clear all rules button
- Editor-safe mode for Elementor
- Savings bar live update; UI polish
- Security hardening (nonces, sanitization, unslashing)
== Upgrade Notice == 1.10.0 improves editor compatibility and adds per-page disable.