[WordPress] 外掛分享: LM Page Assets Control

首頁外掛目錄 › LM Page Assets Control
WordPress 外掛 LM Page Assets Control 的封面圖片
全新外掛
安裝啟用
尚無評分
9 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.0 上架:2026-05-18

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「LM Page Assets Control」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

LM Page Assets Control gives you full control over which CSS and JavaScript files load on each page of your WordPress site. Plugins often load their assets globally — on every single page — even when they are only needed on one or two. This causes unnecessary bloat, slower load times, and lower PageSpeed scores.
With LM Page Assets Control, you can create simple rules to block any CSS or JS file from loading on specific pages, page types, or even everywhere except where it is needed.
How It Works
You provide a partial URL of the asset you want to block (for example woocommerce.css or elementor/assets/css) and choose where to block it — on the homepage, a specific page, all single posts, and more. The plugin then dequeues and deregisters the matching assets on the frontend, preventing them from loading entirely.
Key Features

Partial URL matching — You don’t need the full URL. Just enter any part of the filename or path and all matching assets will be blocked.
14 built-in page conditions — Block assets everywhere, on the front page, specific pages (by slug or ID), single posts, archive pages, blog index, and all major WooCommerce contexts (Shop, Product, Cart, Checkout).
URL-based conditions — Block assets on any URL that contains or does not contain a specific string.
Enable / Disable rules — Toggle any rule on or off without deleting it.
Named rules — Give each rule a descriptive name so you can manage them easily.
Multiple rules — Add as many blocking rules as you need.
Zero configuration — No API keys, no external services, no bloat. Just install and use.
Clean admin UI — A simple, modern interface under Plugins → LM Page Assets Control.
WooCommerce compatible — Includes dedicated conditions for Shop, Product, Cart, and Checkout pages.

Available Page Conditions

Everywhere (all pages)
Home / Front page
Everywhere except home
Blog index page
Single posts
Specific page (by slug or ID — supports multiple, comma-separated)
Archive pages
WooCommerce — Shop page
WooCommerce — Everywhere except Shop
WooCommerce — Single product page
WooCommerce — Cart page
WooCommerce — Checkout page
URL contains a specific string
URL does NOT contain a specific string

Common Use Cases

Block WooCommerce styles on non-shop pages
Prevent a contact form plugin from loading its CSS/JS on every page
Stop a slider plugin from loading scripts on pages that have no slider
Remove Elementor assets from pages built with a different builder
Block any third-party plugin asset that is causing PageSpeed issues

⚠️ Important Notice
This plugin directly controls which CSS and JavaScript files are loaded on your website. Blocking the wrong asset can break your site’s appearance, functionality, or checkout process. Always test changes on a staging environment first and keep a backup ready. If you are not confident about WordPress asset management, consult a developer before making changes.
Who Is This For?
This plugin is intended for developers, advanced WordPress users, and site owners who are familiar with browser developer tools and WordPress asset management. It is not a “set and forget” solution — it requires you to identify the assets you want to block and verify that blocking them does not cause issues.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon