
內容簡介
DietPress 是一款專為提升 WordPress 性能而設計的外掛,透過簡單的設定介面,讓使用者能夠關閉不必要的功能,從而加速網站載入速度。它提供了一系列經過驗證的性能優化選項,並預設啟用,讓使用者輕鬆享受更快的網站體驗。
【主要功能】
• 自動化關鍵 CSS 嵌入
• 智能 JavaScript 延遲解析
• 圖片延遲加載與安全屬性
• 資源提示與預加載功能
• 風險基礎的功能關閉選項
• 自訂設定匯入與匯出
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
DietPress puts your WordPress on a diet and speeds it up. It pairs a complete set of performance optimizations (the ones that used to ship in “Zero Config Performance Optimization”) with a clean, risk-based interface to disable the WordPress features you do not use. Everything is configurable, and the performance optimizations are already on by default, so you can simply activate and enjoy a faster site, or fine-tune every detail.
Coming from “Zero Config Performance Optimization”? This is the same plugin, now called DietPress and fully configurable. All your previous optimizations stay active by default; you just gained a settings page and a whole new set of WordPress-diet options.
By default WordPress loads functions, services and scripts that most sites do not need. They slow down loading times and consume hosting resources. DietPress lets you trim that fat and apply battle-tested performance tweaks, with a clear description of what each option does and what might break, organized by risk level so you always know what is safe.
TWO THINGS IN ONE PLUGIN
1. Performance optimizations (on by default)
Automatic Critical CSS inlined in the head (optional experimental deferral of non-critical CSS)
JavaScript defer parsing with smart dependency handling
Image loading attributes safety net: lazy loading, decoding=async and fetchpriority for images that bypass core
Automatic image dimensions for better CLS scores (including picture elements)
Resource hints: preconnect and DNS prefetch for common third-party origins
Theme stylesheet, critical fonts and logo preloading for a faster LCP
Google Fonts display=swap
Google Fonts local hosting: serve the fonts your theme uses from your own server, GDPR-friendly with a silent fallback to the Google CDN (opt-in)
Selective third-party loading: WooCommerce, Contact Form 7 and block library assets only load where they are used (opt-in)
RSS feed optimization (cache headers and item limit)
Server rules in .htaccess: browser caching, GZIP and Brotli compression, immutable cache headers, CORS for fonts and keep-alive (master switch plus per-feature toggles)
Database maintenance: daily expired-transient cleanup and safe query optimizations
2. Put WordPress on a diet (risk-based, opt-in)
Light (safe for any site): emojis, RSD/WLW tags, shortlinks, self-pingbacks, comment pagination, and more
Moderate (evaluate first): oEmbed, jQuery Migrate, Dashicons on the frontend, Global Styles and Duotone, remote block patterns, avatars and Gravatar, comment threading, and more
Strict (site-specific): granular RSS feed control, Heartbeat API mode, post revisions and autosave, disable comments, XML sitemap, native lazy loading/fetchpriority, content types, selective loading of WooCommerce, Contact Form 7 and block assets, and more
Widgets: dashboard widgets (including third-party ones from Yoast, WooCommerce, Elementor, Jetpack, Wordfence, Rank Math, Gravity Forms), classic sidebar widgets, block-editor widgets and the Customizer
Emails: silence the automatic emails WordPress sends on its own, grouped by area: auto-update results for core, plugins and themes (plus the new-version notice), comment moderation and new-comment notices, and new user, password and email-change notices, plus toggles for the admin email verification prompt and post-by-email. Every option is off by default, and critical notices such as a failed core update are always kept
SCALE, PROFILES AND ANALYZER
Savings indicator: HTTP requests removed, CSS/JS saved and active optimizations at a glance
Quick profiles: Personal Blog, WooCommerce Store, Landing Page and Maximum Cleanup
Site analyzer: personalized recommendations based on your active plugins and content
Import and export your whole configuration as a JSON file
COMPATIBILITY AND EXTENSIBILITY
The plugin includes filters for developers:
dietpress_critical_css – Customize the inline critical CSS
dietpress_critical_css_handles – Define which CSS handles are critical
dietpress_skip_defer_script_handles – Opt scripts out of the JavaScript defer
dietpress_skip_defer_style_handles – Opt stylesheets out of the CSS deferral
dietpress_preconnect_hints – Customize preconnect origins
dietpress_dns_prefetch_domains – Customize DNS prefetch domains
dietpress_critical_fonts – Define critical fonts to preload
dietpress_exclude_local_fonts – Exclude Google Fonts stylesheets from local hosting
dietpress_selective_is_wc_page – Override the WooCommerce page detection of selective loading
dietpress_selective_wc_styles / dietpress_selective_wc_scripts – Adjust the WooCommerce handles removed on non-store pages
dietpress_selective_wc_keep_cart_fragments – Keep the cart fragments script when your theme has a hand-coded mini-cart
dietpress_selective_cf7_has_form – Mark pages that load a Contact Form 7 form dynamically
dietpress_selective_blocks_dequeue – Override the block library dequeue decision
Compatible with:
Well-coded themes and page builders (Divi, Elementor, Beaver Builder, Bricks Gutenberg)
Cache plugins (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, etc.)
Security plugins (DietPress focuses on performance and deliberately leaves security to them; we recommend our free Vigilant)
CDNs (Cloudflare, StackPath, KeyCDN, etc.) thanks to CORS and Vary headers
WordPress Multisite
HOW TO VERIFY THE OPTIMIZATIONS
Cache rules: check your .htaccess for a block marked # BEGIN DietPress with immutable Cache-Control headers
Logo preload: view page source and look for pointing to your logo
Critical CSS: view source and look for
