JCH Optimize
Faster pages, better PageSpeed scores, Core Web Vitals that pass.
Install in
Make your WordPress site load faster, score higher on PageSpeed Insights, and pass Core Web Vitals, without editing a line of code.
JCH Optimize optimizes each page as WordPress serves it. It combines and minifies your CSS and JavaScript, inlines the critical CSS so the page paints right away, lazy loads offscreen images, caches whole pages, and more. It targets the metrics Google measures: Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), Interaction to Next Paint (INP), First Contentful Paint (FCP), Total Blocking Time (TBT) and Time to First Byte (TTFB).
It never modifies your theme, your plugins or your files. Deactivate it and your site is exactly as it was.
Why speed matters
- Visitors stay. Slow pages lose people before they see your content. Fast pages keep them reading, browsing and buying.
- Better search visibility. Google uses Core Web Vitals as part of its page experience ranking signals.
- More conversions. Each second you save makes it easier for visitors to sign up, check out or get in touch.
Free features
Page caching
- Page Cache. Serves pages from the cache without running WordPress for each visit, so the first byte arrives sooner.
- Browser caching for cached pages, following the cache lifetime you set.
- Campaign-friendly caching. Ignores ad and social tracking parameters (utm_*, fbclid, gclid, msclkid) so links from campaigns still get the cached page.
- Leaves personal pages out. Logged-in users and visitors who just submitted a form, such as a WooCommerce cart, aren’t served cached pages.
- Scheduled cleanup of expired cache, run by WP-Cron instead of slowing down visitors’ page loads.
- Editors can clear the cache from Tools > Page Cache, without access to the settings.
CSS and JavaScript
- Automatic Settings. Six levels from Minimum to Optimum set up file optimization for you. Start at Minimum and move up.
- Combine and minify CSS, JavaScript and HTML to cut file sizes and requests.
- Optimize CSS Delivery. Extracts the critical CSS for the top of each page, inlines it, and loads the rest without blocking rendering. This addresses PageSpeed’s render-blocking resources warning.
- Dynamic CSS Selectors. Keeps styles for menus, sliders and other elements that JavaScript adds after the page loads in the critical CSS.
- Defer JavaScript or move it to the bottom of the page.
- Remove CSS and JavaScript files your pages don’t need.
- Custom, mobile and desktop CSS, added after your combined CSS so it takes precedence.
- Exclusions for files, plugins and pages that need to be left alone.
Images
- Lazy load images below the first screen, so they load only when the visitor scrolls near them.
- Add width and height attributes to images that are missing them, preventing layout shifts (CLS).
- Sprite Generator. Combines small background images into one file.
Delivery
- GZip compression and browser caching rules written to .htaccess for you.
- CDN / cookieless domain support to serve static files from another domain.
- HTTP/2 Preload for JavaScript modules and the files you choose.
Built to be safe
- Development / Production Mode Switcher in the admin bar: switch optimization off while you work on your site, then back on, with the settings pages still available.
- Dashboard with an optimization snapshot and notifications, including a warning when another page caching plugin is active.
- Logs that tell you why a page wasn’t optimized or cached.
Go further with JCH Optimize Pro
The free version gets you a long way. JCH Optimize Pro adds the features that move the hardest PageSpeed metrics (LCP, unused CSS and JavaScript, image delivery), plus tools that tell you how your site performs for real visitors.
- AI-Assisted Optimization (beta). An AI optimizes a page of your site the way an experienced person would. It tries each batch of settings on a private preview your visitors don’t see, checks in a browser for anything that broke and fixes it, and measures the result with PageSpeed Insights on mobile and desktop. It keeps the settings that made the page faster and ends with a report of the scores before and after. Needs an AI Optimization license and your own Anthropic (Claude) or OpenAI API key.
- Page Experience (real-user monitoring). Measures LCP, INP, CLS, FCP and TTFB in your visitors’ own browsers and charts them day by day, by device and by page. Set a baseline and get an email when your site gets slower.
- Optimize Images. Compresses images and creates WebP and AVIF versions and responsive sizes for phones and tablets, then serves them automatically. Scheduled optimization works through new images in the background, and your originals are always kept.
- LCP image preloading. Finds the image that real visitors’ browsers report as each page’s largest paint and loads it first, on mobile and desktop.
- Reduce unused CSS and JavaScript. Holds back CSS and scripts until the visitor interacts with the page, and loads analytics and ad scripts after the first paint, so they don’t count against your LCP or TBT.
- Optimize Fonts. Hosts Google Fonts on your own site, preloads the fonts the top of the page needs, and adds size-matched fallback fonts so text doesn’t jump when web fonts load.
- Advanced lazy loading for iframes, CSS background images, audio and video, plus a lightweight placeholder that stands in for YouTube embeds until clicked.
- Reduce DOM size by loading chosen sections of the page after it renders.
- Faster, smarter caching. Serve cached pages as static files straight from the web server, store the cache in Redis, Memcached or APCu, warm the cache with the Recache crawler, and purge the right pages automatically when you publish or update content. Other systems can purge pages through the REST API.
- Cloudflare integration. Purges Cloudflare’s copies of your pages along with JCH Optimize’s, and switches Cloudflare’s Development Mode with the Mode Switcher.
- Multiple CDN domains and Smart Combine bundling for HTTP/2 and HTTP/3.
- Ticket support. Open a private support ticket for bugs in JCH Optimize and for anything it breaks on your site, such as a menu, a slider or a form, whether the settings came from an AI-assisted run or were set by hand.
Free vs Pro at a glance
- Free and Pro: Page Cache, combine and minify, critical CSS, lazy load images, image dimensions, Sprite Generator, GZip, browser caching, CDN (one domain) and HTTP/2 Preload.
- Pro adds: AI-Assisted Optimization (with an AI Optimization license), Page Experience real-user monitoring and alerts, WebP / AVIF and responsive images, LCP image preloading, unused CSS and JavaScript reduction, Optimize Fonts with self-hosted Google Fonts, lazy loading for iframes, background images, video and YouTube, a static file page cache, Redis / Memcached / APCu, the Recache crawler, Cloudflare integration, multiple CDN domains and private ticket support for bugs and regressions.
Compare plans and upgrade to Pro »
Get started in minutes
- Install and activate JCH Optimize.
- While you configure it, switch off other page caching plugins.
- Go to Settings > JCH Optimize and choose an Automatic Settings level. Start at Minimum, check your site, and move up while everything still looks right.
- Switch on Optimize CSS Delivery, Lazy Load Images and the Page Cache.
- Test with PageSpeed Insights or GTmetrix. If something looks wrong, exclude the file or plugin causing it.
Documentation
The documentation explains each setting and walks you through optimizing your site, step by step.
Written by Joobi from the project's own listing. See the source page
6.1.1
- [MEDIUM] Fix Cloudflare’s whole cache being cleared each time JCH Optimize removed expired files from its cache, with Enable Cloudflare purge on. Only the pages removed from the Page Cache, including pages that used an expired combined file, are cleared at Cloudflare now, sent in batches Cloudflare accepts. Deleting pages on the Page Cache page with none that are still cached no longer clears Cloudflare’s whole cache either. [Pro Version]
- [MEDIUM] Fix JCH Optimize Pro 6.1.0 offering 6.1.0 as an update after it was installed. 6.1.0 reported its version to the update check as 6.0.2.1. [Pro Version]
- [MEDIUM] Fix pages showing an error page when the Sprite Generator is on and the combined CSS has background images for a sprite.
- [MEDIUM] Fix visitors who logged in with a login form on a page of the site, such as WooCommerce’s My Account page, being kept out of the Page Cache after logging out, until the end of the Page Cache’s lifetime, with Exclude form users on. The login form is a posted form, and the cookie it set stayed after logout. It is removed when the user logs out now.
- [MEDIUM] Logging in sets the cookie that keeps logged-in users out of the capture cache right away, so the first pages they visit after logging in on wp-login.php aren’t served from it. [Pro Version]
- [MEDIUM] Fix pages whose URL can’t be stored in the capture cache, such as a URL with %25 or .. in its query string, showing an error page when served from the Page Cache, and stopping the Page Cache page from listing cached pages. These pages aren’t capture-cached now. [Pro Version]
- [LOW] Fix PHP warnings and notices being shown in the responses to the plugin’s admin requests on sites that display PHP errors, which could stop the admin pages working.
- [LOW] Fix Stripe’s script (js.stripe.com) being combined and moved with the other scripts. It is left where it is again.
- [LOW] Fix the Exclude image from sprite and Include additional images in sprite settings failing to list the sprite’s images.
- [LOW] Fix Add Image Attributes showing an error on pages with an image button (
<input type="image">). - [LOW] Fix Load responsive images leaving a broken style attribute on an element above the fold with several background images in its style attribute. All of them are moved to the style element now. [Pro Version]
- [LOW] Optimize Images adds each image to its list of optimized images once. An image optimized again was added again, so the list kept growing. [Pro Version]
6.1.0
- Raised the minimum PHP version to 8.1.
- Updated bundled third-party libraries to current stable releases, including Symfony DomCrawler, Guzzle and Laminas.
- Improved cache storage by deduplicating identical optimized content, reducing cache size on disk.
- Settings exports are now downloaded directly and no longer include the Cloudflare API token, Redis password or Download ID.
- Importing settings keeps the site’s current Cloudflare API token, Redis password and Download ID when the file doesn’t include them.
- Page Cache only stores pages requested on the host of the site’s home URL.
- Redis hosts written as unix:///path, or any absolute path, are recognized as Unix sockets.
- Uninstalling deletes the plugin’s cache folder and the next-gen and responsive images it created. Backups of optimized images are kept.
- [HIGH] Fixed a cross-site scripting vulnerability where encoded characters in URLs, such as search query links, were decoded during optimization.
- [HIGH] Required a valid nonce for all administrator tasks that change settings or files.
- [HIGH] Fixed an open redirect through the return parameter of the Clean Cache task.
- [HIGH] Validated image URLs and paths returned by the image optimization service and kept image folders within the site root.
- [HIGH] Fixed CSS and JavaScript files outside the site root being readable through encoded slashes (..%2F) in their URLs when files are combined.
- [HIGH] Removed the jchbackend URL parameter that disabled optimization for any visitor.
- [MEDIUM] Page Cache no longer stores pages left unoptimized for a single request, such as pages loaded in an iframe, requested with jchnooptimize, or where optimization failed.
- [MEDIUM] Combining files no longer fetches files from private network addresses, or follows redirects to them.
- [MEDIUM] Page Cache’s cookies follow the COOKIEPATH and COOKIE_DOMAIN settings, are HTTPS only on HTTPS sites, and cover the whole site.
- [MEDIUM] After an update, the .htaccess changes and the Mode Switcher must-use plugin wait for an administrator who can activate plugins, instead of running on a visitor’s request.
- [MEDIUM] Only one Recache runs at a time.
- [MEDIUM] Fixed Recache not falling back to the site URL when Recache Base URL is empty.
- [MEDIUM] Fixed Recache failing when the cache storage adapter is unavailable.
- [MEDIUM] Recache from the command line, such as WP-CLI running the cron event, no longer cleans the cache when the selected cache storage can’t be reached from the command line, such as APCu. It logs a warning instead.
- [MEDIUM] Ignored malformed Host headers instead of letting them change the detected page URL.
- [MEDIUM] Rejected malformed host names in Page Cache and Capture Cache keys, and unsafe characters and path segments in Capture Cache file paths.
- [MEDIUM] Escaped file and folder names in the Optimize Images file tree.
- [MEDIUM] With Optimize CSS Delivery on, Optimize Fonts keeps the @font-face rules used above the fold in the critical CSS, so fonts are no longer delayed.
- [MEDIUM] Fixed stylesheets listed in Optimize these files being removed from the page while Optimize Fonts is off.
- [MEDIUM] Fixed responsive background CSS being lost on LCP images and excluded files.
- [MEDIUM] Fixed critical CSS from @import chains overwriting each other in the cache.
- [MEDIUM] Fixed garbage collection removing cache files that were still in use.
- [LOW] Fixed browsers autofilling the administrator login password into the Redis password field.
- [LOW] Fixed links being injectable into the error message on the Optimize Images page.
- [LOW] Escaped page URLs and details on the Page Cache list.
- [LOW] Fixed PHP warnings after importing or resetting settings that leave out Page Cache settings.
- [LOW] Validated Page Cache IDs before deleting cached pages.
- [LOW] Fixed the total cache size being under-reported for some cache storage adapters.
- [LOW] Fixed invalid width and height attributes on images.
- [LOW] Fixed HTML minification options and settings serialization.
- [LOW] Fixed a duplicated @import being combined again when Resolve @imports is on.
- [LOW] Removing JCH Optimize’s section from .htaccess leaves the rest of the file as it was, instead of collapsing blank lines.
- [LOW] Fixed relative URLs on pages with a
<base>tag being resolved against the page URL instead of the base, affecting combined files, image dimensions, CDN URLs and preloads. - [LOW] Composer’s list of installed packages no longer includes packages that aren’t shipped.
6.0.2
- Added browser caching controls for Page Cache and Capture Cache, honoring the configured cache lifetime.
- Added mobile client detection support to Capture Cache.
- Improved Capture Cache header generation and configuration guidance for Apache and Nginx.
- Improved automatic LCP image selection and matching, including responsive and background images.
- Improved Dynamic CSS Selectors detection for dynamically added and hidden elements.
- [MEDIUM] Fixed browser caching for logged-in users, POST requests and submitted-form activity.
- [LOW] Fixed the combiner to use the canonical Debug Plugin setting.
- Updated the build and development tooling for Phing 3 and corrected platform path definitions.
6.0.1
- [HIGH] Fixed an authenticated access-control security issue affecting administrative actions. Reported by Artus KG.
- [HIGH] Hardened settings import validation and processing.
- [MEDIUM] Added direct capability checks to privileged administrative actions.
- [MEDIUM] Improved validation of custom CSS settings output.
- Updated the plugin URI metadata to use HTTPS.
- [LOW] Fixed dashboard icon spacing.
6.0.0
- Redesigned the Dashboard, Configurations, Page Cache and Optimize Images admin pages for the updated WordPress 7.0 admin UI.
- Updated WordPress compatibility metadata to test up to WordPress 7.0 and require at least WordPress 6.7.
- Added dashboard optimization snapshot.
- Added new Dynamic CSS Selectors setting.
- Added Cloudflare development mode edit support.
- Re-added Smart Combine optimized bundling for Pro.
- Improved Optimize CSS Delivery, including dynamic selector handling, pseudo-element support, dynamic hydration scheduling, cache-key stability and stale cache alias handling.
- Improved image optimization and LCP handling, including responsive image width configuration, auto-LCP lazy-load cleanup, retry diagnostics and websocket disconnect handling.
- Refactored page cache architecture and improved page cache list output, cache adapter error messaging and page URL escaping.
- Improved URI handling and validation, including malformed server values, URI candidate transformations and HTTP_HOST hardening.
- [MEDIUM] Fixed JavaScript Configure Helper issues with Smart Combine and container setup.
- [MEDIUM] Fixed lazy-load CSS empty URL handling, multiline URL attributes, failed external combine assets and scoped Bootstrap source map handling.
- [LOW] Fixed Bootstrap toggle focus styling, dashboard icon CSS, dynamic selector detection and Optimize CSS Delivery excluded CSS handling.
5.1.4
- [HIGH] Fixed issue with plugin sometimes mutating .htaccess files causing errors on some servers.
- More Bootstrap usage on Configurations page.
5.1.3
- Improve modeswitcher menu
- Use scoped bootstrap to render form elements
- Use selectors to capture crossorigin value on the Preloads tab.
- Added image/avif to htaccess optimization
- Fix bug with processing scripts containing backslashes
5.1.2
- @font-face broken in some CSS files
5.1.1
- Add icons to Admin menu
- Remove unused lazy load settings
- Update WordPress required version to 6.5.0
- Added additional LCP settings
- [HIGH] Fix error on Optimize Image tab
- [MEDIUM] Fix bug with handling invalid image URLs
- Improve Optimize CSS Delivery
- [MEDIUM] Files with integrity attribute were broken
- [LOW] Fix PHP 8.5 deprecations
5.1.0
- Added support for AVIF images
- Added Cloudflare cache purge integration
- Improved Optimize CSS Delivery to reduce over-inlining and improve FCP and LCP
- Improved Reduce Unused JavaScript feature to reduce the need to exclude files and better optimizations
- Add WP-CRON support for recache feature
- Add option to set sitemap URL for better recache coverage
- Added support for HTTP Request feature in Page Caching to Nginx servers. (Server caching)
5.0.1
- Fixed a Path Traversal security vulnerability on the Optimize Image page found by Artyom from CleanTalk.
- Improved simplification of dynamic CSS Selectors listed by the Optimize CSS Delivery configure helper.
- [MEDIUM] Some CSS fonts missing when Reduce Unused CSS is enabled.
- [MEDIUM] Remove @charsets from combined dynamic CSS file
- [LOW] JavaScript error when lazy load background image enabled but none found.
- Improve robustness of Critical JavaScript configure helper
- Don’t cache 404 or other invalid pages.
- Improved usability and accuracy of ‘Above fold marker’ in Miscellaneous Settings and ‘Configure helper’ in Optimize CSS Delivery. These settings are only visible when ‘Debug plugin’ is enabled. Please read the descriptions for more information.
- CSS files loaded dynamically in ‘Reduce Unused CSS’ feature are combined to prevent incremental layout shifts when the user interacts with the page.
5.0.0
- Implemented new design for Dashboard.
- Separate Image features from CSS features on Dashboard
- Settings ‘Include files’ in the HTTP/2 Preload and ‘Preconnect domains’ in Preconnect 3rd part Origins no accept crossorigin attribute values.
- Added settings to lazy load selected images above the fold such as hidden slider images and submenu icons.
- Added settings to exclude sections from the Reduce DOM feature and to include selected DIVs above the fold using id or class.
- Modify default HTML sections in Reduce DOM feature.
- Improvements in fht Image Optimization feature and API.
- Limit the amount of font files and images preloaded by the HTTP/2 feature automatically to avoid overloading the critical path.
4.2.1
- Fixed security vulnerability on path traversal. Unprivileged users could access directory information on the Optimize Image page
- Bug Fix Sort Items on Page Cache tab not working
- Use the loading attribute to lazy load images instead of JavaScript. JavaScript only used for background images and audio/video
- Asynchronously loaded CSS in Optimize CSS Delivery feature placed at bottom of page.
4.2.0
- Add responsive image feature to further boost LCP
- Add support for resizing WEBP images to create responsive images
- Bug Fix: Backup images were only saved when WEBP images were generated
- Bug Fix: Fix fatal error on servers without mbstring support
4.1.1
- Removed support for deprecated Wincache storage.
- Improved caching to reduce server resource usage.
- Bug Fix: Couldn’t exclude JavaScript with async attributes.
4.1.0
- Minimum PHP version is now 8.0
- Add feature to preload LCP images with high-fetch priority
- Add setting to easily find the Elements above fold value. Only works if Debug plugin is enabled.
- Improved Optimize image script
- Replaced CDN setting preconnect CDNs and HTTP.2 setting push CDN files with Preconnect section for third-party origins
4.0.1
- Bug Fix: Recache didn’t work on some servers.
- Bug Fix: Full compatibility with Windows broken.
- Fix security vulnerability with broken access control to settings
- Fix security vulnerability with the Optimize Image metafile
- Add setting to ignore query parameter on page cache
4.0.0
- Minimum PHP version updated to PHP 7.4
- Added Recache feature. [Pro version only]
- Added icon on Dashboard to load WEBP images. [Pro version only]
- Added Bul Settings Operations feature to export, reset, and import settings.
- Modified the JavaScript exclude settings to make them more user-friendly.
- Rearranged some settings on the Configurations tab to make them more intuitive.
- Other minor bug fixes and improvements.
3.2.3
- Bug Fix: Cross Site Scripting security vulnerability on the Configuration tab.
- Bug Fix: Conflict with XML sitemaps when using the Optimize Fonts feature.
- Other minor bug fixes and improvements.
3.2.2
- Bug Fix: PHP Error when Clean Cache is accessed from the admin menu on some sites
- Bug Fix: PHP Error with function utf8_strlen on some sites.
- Other minor bug fixes and improvements.
3.2.1
- Added setting to optionally disable deletion of expired cache.
- Added settings for excluding critical modules in Reduce Unused JavaScript. [Pro version only]
- Bug fix: Some external domains were not being preconnected when Optimize Fonts is enabled. [Pro version only]
- Bug fix: Imported Google fonts were not being handled properly. [Pro version only]
- Bug fix: Reduce Unused JavaScript wasn’t working properly on some sites. [Pro version only]
3.2.0
- Improve method to generate cache key for Optimize CSS Delivery feature to prevent excess generating of cache.
- Bug fix: CDN feature broke processing same images used multiple times in scrset.
- Improve cache management to reduce cache build up on some sites.
- Bug fix: Fix issue with .htaccess codes causing 500 errors on older versions of Apache.
- The Http/2 tab on the Configurations tab was changed to Preload and the Optimize Fonts feature moved to this tab.
- Bug fix: Fixed bug with lazy loading audio/video set o autoplay. [Pro version only]
- The Optimize Google Fonts feature was expanded to optimize all fonts. [Pro version only]
- Modules are now being loaded dynamically in the Reduce Unused Javascript feature. [Pro version only]
- Added setting to preload modules in the Http/2 Preload feature. [Pro version only]
- Added setting o lazy-load background images defined int eh CSS files to the Lazy-load feature. [Pro version only]
- Added setting to change existing font-display policy to swap in the HTTP/2 preload feature. [Pro version only]
- Bug fix: Images in elements were not converted to WEBP. [Pro version only]
3.1.0
- Minimum required PHP version is now 7.3
- Added support for Brotli compression in .htaccess optimization.
- Added new tab in admin for Page Cache so individual files can be viewed and deleted.
- Added support for different cache storage types (APCu, Memcached, Redis, WinCache) [Pro version]
- New page cache feature to serve static content via HTTP Request without calling PHP to significantly improve server load time. [Pro Version]
- Added ‘Remove Unused Javascript’ feature [Pro Version]
3.0.1
- Bug Fix: Fix PHP error when using Page Cache on some sites
3.0.0
- Complete redo of Admin Configuration page to be more user-friendly and aesthetic.
- Added Remove javascript/Remove CSS setting.
- Added Utility feature to generate new cache hash.
- Added Smart Combine feature. [Pro version only]
- Added Reduce DOM feature. [Pro version only]
- Using icon images instead of font icons on action buttons on dashboard.
2.10.0
- New Feature: Added admin menu item to delete cache.
- Improvement: When Lazyload image is enabled, hidden images are also only loaded when they become visible.
- Improvement: Added support for older browsers that don’t use WEBP images.
- Improvement: Recursing into subfolders while using the Manual Optimize Image section is now optional.
- Improvement: Urls in srcsets are now being processed when using Automatic Optimize Image option and are also now being converted to WEBP images where necessary.
- Other minor
Follow this listing's changes (Atom feed)