[WordPress] 外掛分享: Pagelean – Conditional Script and Style Loading

首頁 › 外掛目錄 › Pagelean – Conditional Script and Style Loading
WordPress 外掛 Pagelean – Conditional Script and Style Loading 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
5 天前
最後更新
—
問題解決
WordPress 6.5+ PHP 8.1+ v1.2.0 上架:2026-10-05

內容簡介

Pagelean 是一款專為 WordPress 設計的外掛,能夠根據需求精確移除不必要的 CSS 和 JavaScript,減少頁面加載時間,提升網站性能。

【主要功能】
• 精確移除不必要的腳本和樣式
• 支援依據頁面類型或設備選擇移除
• 自動補全已註冊的腳本和樣式名稱

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Pagelean – Conditional Script and Style Loading」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Most plugins load their CSS and JavaScript on every page, even where their feature never appears. A contact form script on your checkout, a slider stylesheet on your blog posts, a social-share bundle on your privacy policy. That weight slows every visit.
Pagelean lets you remove a specific script or style from exactly the pages where it is not needed – front page, blog index, single posts and pages (by ID), single entries of a post type, the WooCommerce shop, product, cart and checkout pages, or by device. It uses the standard WordPress enqueue system (wp_dequeue_script / wp_dequeue_style), so there is no page-builder lock-in and nothing proprietary to learn.
What it does

Remove any registered script or style handle by name.
Choose where it is removed: everywhere, the front page, the blog posts index, single posts/pages (by ID), single entries of any public post type, the WooCommerce shop, product, cart or checkout page (when WooCommerce is active), or only mobile / only desktop.
Test mode: the rules apply only to logged-in administrators while everyone else gets the untouched page, with a notice in the admin until you turn it off.
Dequeue by default; tick “Also deregister” on a rule only when you want the handle gone even where another script depends on it.
Autocomplete from the handles your front-end pages actually load, recorded while you browse the site as an administrator (up to 500, with their source file).
Runs late on the front end so it removes handles reliably, and never touches the admin.

What it does not do
It does not minify, combine or defer. It removes what you tell it to remove – nothing automatic, nothing hidden. Removing a handle that another script depends on can break functionality, so change one rule at a time and check the front end.
Part of the Plogins family
Pagelean is one of a family of small, focused WordPress and WooCommerce plugins by WPPoland. Learn more at plogins.com.

延伸相關外掛

文章
Filter
Mastodon