Joomla 10.0.0 Stable
What's new
Version 10.0.0 is a major release. It requires PHP 8.2 and Joomla! 5.4 or later, and we recommend all users update: it includes a security fix and fixes for actions refused to users who aren't Super Users since 9.4.3.
AI-assisted optimization run (Pro, beta): from the dashboard's new AI-Assisted Optimization panel, an AI works through optimizing a page of your site the way an experienced person would, starting with your home page. Each batch of settings is tried on a private preview your visitors don't see, checked in a browser for anything it broke, and measured with PageSpeed Insights on mobile and desktop. The settings that made the page faster are saved, and the run ends with a report of the scores before and after. It needs an AI Optimization license and your own Anthropic (Claude) or OpenAI API key.
Page Experience (Pro): real-user monitoring of the Core Web Vitals (LCP, INP and CLS), measured in your visitors' own browsers and shown day by day, per device and page, with an email when your site gets slower than its baseline. LCP Images now chooses a page's LCP image from what visitors' browsers reported, instead of guessing.
Fonts and JavaScript (Pro): Optimize Fonts can serve Google Fonts from your site, adds size-matched fallback fonts so the page doesn't shift when a web font loads, has a Font display setting with Optional, and can defer icon fonts until after the first paint. New settings load analytics and ad pixel scripts after the first paint, and scripts such as a consent manager asynchronously.
Images (Pro): Optimize Images keeps each original and always optimizes again from it, and can run unattended with the new Scheduled Optimization task. The settings that load optimized images moved to the Media tab, and a new Smallest image on phones setting lets high-resolution phones choose a sharper image.
Cache: outdated pages are removed from the Page Cache, its static files and Cloudflare when content changes, and other systems can purge pages through Joomla's Web Services (Pro). Expired cache is deleted by a scheduled task instead of during a visitor's page load. Use HTTP Requests is now called Serve Cached Pages as Static Files.
Permissions and logs: a new Clear Cache permission lets user groups clear the cache without changing settings, and a new Logs page shows JCH Optimize's logs, with a Log level setting that can explain why a page wasn't optimized or cached.
Security: this release fixes addresses and JSON being written back to the page in a way that could let HTML in them, such as from a visitor's comment, run script.
Many bugs were fixed, including critical CSS being extracted again for every page and visitor on large sites, imported CSS lost from cached combined files, and static cached pages losing the site's security headers. See the CHANGELOG for details.
Developed and tested on up to PHP 8.5.13 and Joomla! 6.2.1Changelog
New features
- Add Page Experience (Pro): real-user monitoring of the Core Web Vitals (LCP, INP and CLS), with FCP and TTFB, measured in your visitors' own browsers on a share of page views and shown day by day, per device and page, on the new Page Experience page. Set a baseline and every new day is compared with it, with an email when your site gets slower. The dashboard's Notifications panel shows whether it is on, its regressions and whether measurements are arriving, and the new JCH Optimize - Page Experience scheduled task can run its daily job instead of CRON. Turn it on with Measure page experience on the Page Experience tab.
- Add Scheduled Optimization to Optimize Images (Pro): the site's images are optimized unattended by the new JCH Optimize - Optimize images scheduled task, or from CRON with the jchoptimize:optimize-images command, by crawling the site's pages or by folders. Each run continues the saved job, pauses when your plan's rate limits are reached and resumes after the wait, and the Optimize Images page shows the latest job under the file tree.
- Add a Clear Cache permission to the Permissions tab of the Options page. User groups allowed it, along with Access Administration Interface, can delete the cache from the Mode Switcher and use the Page Cache page, including Recache (Pro), without being able to change any setting. The Mode Switcher shows each user only what they can use, and isn't shown to users who can't use it. Joomla's menu and the dashboard's Navigation panel list only the pages a user can open, which the new System - JCH Optimize Administrator Menu plugin sees to; keep it enabled.
- Add a Content - JCH Optimize Cache Purge plugin (Pro) that removes outdated pages from the Page Cache, its static files and Cloudflare when articles are saved, published, unpublished, featured, trashed or deleted, and clears the cache when categories, menu items or site modules change.
- Add a Defer these font files setting to Optimize Fonts (Pro): the listed font files load after the page's first paint, so they don't compete for bandwidth with what visitors see first. Meant for icon fonts such as Font Awesome, whose icons are blank spaces until they load.
- Add a Font display setting to Optimize Fonts (Pro), with Optional next to Swap: the web font gets a very short time to load, so fonts never shift the page or delay the Largest Contentful Paint. Force swap policy is now Override font-display in the CSS.
- Add a Load these files after the first paint setting to the JavaScript tab's Exclude JavaScript section (Pro), for analytics and ad pixel script files: each listed file starts only after the page has painted, on every page view and without waiting for an interaction, so PageSpeed doesn't count it in the time to the largest paint.
- Add a Load these files asynchronously setting next to it (Pro), for script files that must run unchanged but nothing else depends on, such as a consent manager: a listed file stays where it is and is given the async attribute, so it no longer blocks the page from rendering.
- Add a Logs page that shows JCH Optimize's logs: general, image optimization, Recache and the AI-assisted optimization run (Pro), with a Log level setting on the General tab choosing what is written. With Log level set to Debug, it says why each page isn't optimized, such as an excluded page or menu item, a logged-in user with Disable logged-in users on, jchnooptimize in the URL or a page in an iframe, and why each page isn't served from or stored in the Page Cache, such as a submitted form, an excluded page or menu item, messages waiting to be shown, or another extension switching it off, and lists the extensions that can switch it off.
- Add a Smallest image on phones setting to Load Responsive Images (Pro), on by default. Responsive images give phones the smallest version of an image whatever the screen's pixel density, which loads fastest but can look soft on high-resolution phones. Switch the setting off, instead of switching responsive images off, to let phones choose the version that suits their screen. Background images in CSS follow the setting too.
- Add the AI-assisted optimization run (Pro, beta), from the dashboard's AI-Assisted Optimization panel: an AI works through optimizing a page of your site the way an experienced person would, starting with your home page. Each batch of settings is tried on a private preview your visitors don't see, checked in a browser for anything it broke and corrected, and measured with PageSpeed Insights on mobile and desktop. The settings that made the page faster are saved, the live page is checked once more, and the run ends with a report of the scores before and after, the settings it changed and what it couldn't fix. It needs an AI Optimization license and your own Anthropic (Claude) or OpenAI API key. The panel takes the place of the optimizing services link, and the free version shows it as available in Pro.
- HTTP/2 Preload's Preload JavaScript modules, Include Files and Exclude Files settings are available in the free version.
- Images that your template's own script loads from data-src, such as UIkit's and lazysizes' images, get the WebP or AVIF copies Optimize Images made (Pro) and can be preloaded as the page's LCP image.
- Optimize Fonts (Pro) adds size-matched fallback fonts: until a web font loads, its text is shown in Arial or Times New Roman resized to take up the same space, so the page doesn't shift when the web font swaps in.
- Optimize Fonts (Pro) can serve Google Fonts from the site: the stylesheets and their font files are saved in the cache folder and combined with the site's CSS, so pages no longer connect to Google's servers. It's on by default while Optimize Fonts is on.
- Other systems can delete cached pages through Joomla's Web Services (Pro): DELETE /api/index.php/v1/jchoptimize/pagecache deletes every cached page, and POST /api/index.php/v1/jchoptimize/pagecache/purge deletes the cached versions of the pages whose addresses it lists, with their static files and Cloudflare's copies. The new Web Services - JCH Optimize plugin adds the routes, and the request needs a Joomla API token of a user with Web Services Login and JCH Optimize's Clear Cache permission.
- Page Cache ignores common ad and social tracking parameters (utm_*, fbclid, gclid, msclkid) on new installs, so links from campaigns and social posts are served from the cache.
- Show the debug mode and configure helper status, the cache storage status, and the system plugin order in the Notifications panel on the dashboard, with a warning when a configure helper is left on, the configured cache storage is unavailable, or the plugins are out of order.
- Stylesheets that load without blocking the page are also linked in a noscript element, so they apply in browsers without JavaScript.
- With Exclude form users on, other extensions can trigger the onJchOptimizeUserPostFormDeleteCookie event to serve a visitor who submitted a form from the Page Cache again before the end of its lifetime, for example after they empty their cart. The User - JCH Optimize User State plugin removes the cookie.
Noteworthy changes
- Raise the minimum requirements to PHP 8.2 and Joomla! 5.4.
Bug fixes
- [HIGH] Fix image, link and video addresses that aren't valid URLs being written back to the page with their HTML entities decoded, and JSON rewritten for the CDN with left unescaped, which could let HTML in them, such as from a visitor's comment, break out and run script.
- [LOW] Fix Cache Info failing when a cache file was removed while the cache was being counted.
- [LOW] Fix LCP Images (Pro) preloading only the desktop image of a background image configured for both viewports, and a configured image that names a file also selecting other sizes of it (photo.jpg selecting photo-300x200.jpg), so a thumbnail could take the hero's preload.
- [LOW] Fix Load responsive images (Pro) adding srcset and sizes to an image in a picture element with sources, and LCP Images preloading such an image, or one the page already gives fetchpriority="high", instead of giving it high priority.
- [LOW] Fix Load responsive images (Pro) wrapping background images in a further set of media queries each time the CSS was processed again with Optimize CSS Delivery, and leaving an element's ::before or ::after with no background image at all.
- [LOW] Fix Optimize Images (Pro) setting aside 32 MB of memory to save each optimized image, which failed on sites with a low memory limit, and missing background images in all but the page's first CSS group when optimizing by URL.
- [LOW] Fix a held-back script's jQuery load handlers never running with Reduce Unused JavaScript (Pro) when jQuery is critical, which could leave a portfolio grid unlaid out.
- [LOW] Fix an off-canvas panel at the start of the page ending the count of elements above the fold, which left the whole visible page below the fold.
- [LOW] Fix deleting expired cache on a very large cache running into PHP's time limit before deleting anything, so the cache never shrank and each attempt held a PHP worker. When it can't finish in time, the whole cache is cleaned instead.
- [LOW] Fix font URLs written without quotes and containing @ being broken in @font-face rules.
- [LOW] Fix removing a section from .htaccess leaving blank lines behind and collapsing the file's other blank lines.
- [MEDIUM] Fix Optimize CSS Delivery extracting the critical CSS again for each page built from the same template, such as each product page of a shop, because the links, images and ids on each page were part of its cache key. On large sites, the cache grew with every page and pages kept loading slowly. Pages now share their critical CSS when the stylesheets can't tell them apart.
- [MEDIUM] Fix Optimize CSS Delivery extracting the critical CSS again for every visitor without a session cookie, such as bots, the Recache crawler and first visits, because Joomla's form token was part of its cache key. The cache grew by an entry on nearly every request, adding seconds to each page and filling the disk.
- [MEDIUM] Fix a configured LCP image, HTTP/2 preloads and prefetches having no effect after a settings change that left the page's contents unchanged, because the values from before the change were kept.
- [MEDIUM] Fix a page shown in a frame, such as a video popup of the page itself, loading everything Reduce Unused JavaScript and Reduce Unused CSS (Pro) held back at once, which slowed the page that framed it. A lazy-loaded iframe of the page itself is left empty.
- [MEDIUM] Fix a stylesheet that imports several others, with Replace Imports on, keeping only the last import's contents in its cached combined file, so pages served from the cache lost the other imported CSS, such as a Google Font's @font-face rules.
- [MEDIUM] Fix an expired cache cleanup that failed partway leaving the Page Cache switched off: no new pages were cached until the cache was cleared.
- [MEDIUM] Fix deleting expired cache leaving pages cached for the other device, or before a settings change, linking to deleted CSS and JavaScript files, so they showed broken until they expired. Those pages are deleted with the files now.
- [MEDIUM] Fix every action in JCH Optimize being refused with "403 Not authorised" since 9.4.3 to users who weren't Super Users, including Joomla's Administrator group: clearing the cache, the dashboard's icons and utility tasks, the Mode Switcher and Optimize Images (Pro). They needed Configure ACL & Options. Changing settings now needs Configure Options, which the Administrator group is given when you install or update unless your permissions already set it, and only Bulk Settings and the AI-assisted optimization run (Pro) still need Configure ACL & Options. The dashboard and the Optimize Images, Page Experience and Logs pages now open only to users who can use them.
- [MEDIUM] Fix inline scripts that Reduce Unused JavaScript (Pro) deferred without combining them never running.
- [MEDIUM] Fix pages served as static files (Pro) losing the headers the site sent with them, such as its security headers (Cross-Origin-Opener-Policy, X-Frame-Options, Referrer-Policy) and its Link preloads, on Apache and LiteSpeed.
Miscellaneous changes
- A settings export is named after the site and the time it was made.
- Combined files delivered with PHP are served through Joomla, so their URLs follow SEF URLs, URL rewriting and the URL suffix, and Gzip Page Compression compresses them.
- Custom CSS is added after the combined CSS, as its own style element at the bottom of the head, so its rules take precedence.
- Expired cache is deleted once a day by the new JCH Optimize - Delete expired cache scheduled task, which installing JCH Optimize creates, instead of while visitors load pages, which slowed down the page that did it. The jchoptimize:clear-expired command does the same from CRON. The Console and Task plugins are now in the free version too, for this task and command. The Delete expired cache setting is removed: disable the task to stop deleting expired cache, or change its schedule. Sites that had the setting off get the task disabled. On LiteSpeed servers, run the task from the site rather than from CRON on the command line, which can't clear LiteSpeed's cache: with the LSCache plugin installed, command-line runs keep the expired files.
- HTTP/2 Preload no longer preloads the images and fonts it found in the critical CSS, and its File Types setting is removed: those preloads competed with the LCP image and often went unused. LCP Images and Optimize Fonts preload what the top of the page needs. HTTP/2 Preload preloads JavaScript modules and the files in Include Files, which are now added to the other preloads instead of replacing them.
- LCP Images (Pro) chooses the LCP image of a page without a configured one from Page Experience: the image visitors' browsers most often reported as the page's LCP element over the last two weeks, for phones and desktops separately. It no longer guesses the largest image near the top, so without Page Experience only configured LCP images are preloaded.
- Lazy load (Pro) loads an iframe below the first screen when the visitor scrolls near it, with lazysizes, instead of with loading="lazy", which some browsers loaded before the first paint.
- Optimize Fonts (Pro) preloads the two font files most likely to show the text above the fold, preferring basic Latin, upright fonts in the weights the page uses, whether or not HTTP/2 Preload is on. HTTP/2 Preload chooses the font files it preloads the same way.
- Optimize Images (Pro) keeps each image's original and always optimizes again from it, never from the optimized file, so changing the image settings (turning on AVIF, another quality) makes the new copies from the full-quality image. Ignore optimized images now skips only images already optimized with the current image settings; the others get their missing WebP, AVIF and responsive copies. Restoring an image treats it as never optimized. The list of optimized images moves to .jch/jch.json when you update.
- Page Cache's Use HTTP Requests setting (Pro) is renamed Serve Cached Pages as Static Files, and the Page Cache list's HTTP Request column and filter Static File, so the feature is easier to recognize.
- Reduce Unused JavaScript and Reduce Unused CSS (Pro) no longer switch themselves off for testing tools such as Lighthouse and PageSpeed Insights, so these measure your pages as visitors get them.
- Replace existing srcset (Pro) is now on by default, so images that your template already gives a srcset use your responsive images too. Sites that saved their settings with it off keep it off.
- Saving settings that change what pages hold deletes the cached pages, from the Page Cache, its static files and Cloudflare, so pages served as static files no longer keep the old settings until they expire.
- The cookies JCH Optimize sets are marked Secure on HTTPS requests.
- The dashboard keeps its sections in fixed columns instead of moving them around with their heights: AI-Assisted Optimization, Optimize Files, Image/CDN Features, CSS Features and Advanced Features on the left; Navigation, Configuration, Notifications and Utility Tasks on the right. A Dashboard column setting on each JCH Optimize dashboard module moves it.
- The dashboard's Support Info panel is now called Copyright.
- The settings that load the images Optimize Images makes (Pro) moved from the Optimize Images tab to the Media tab: Loads AVIF/WEBP Images, Load WEBP images, Load AVIF images and WEBP load policy are in a new Load AVIF/WEBP Images section, and Load responsive images and Replace existing srcset in a new Load Responsive Images section. The Optimize Images tab keeps the settings for making the images. Saved settings are unchanged.
JCH Optimize for Joomla!
| Downloaded | 0 times |
| File size | 1.82 Mb |
| MD5 Signature | bb956ea621bae4e35bcee86e73e823a0 |
| SHA1 Signature | 3349094e26e18ae5ce2e9c3551d466f89e8be358 |
| SHA-256 Signature | 5f944f2742f5b846d0307390e5d35398221004e8fff6f4f5213abf997f32d078 |
| SHA-384 Signature | f437592a96ba499baf62d55d307b02c705b1b9e9b3ae7c3a020659257ec1d0db804b1c7817c68f7bcff6ec67c6b1a133 |
| SHA-512 Signature | 0c16e2ae3f5988d7c2963c2327035a2e6e45407d3d2da0033892cbd850932276c617aa0e552839af37ef5660490b047b0c99f098ee2bf296b55c786cb1c80236 |
| Compatibility |
JCH Optimize performs several front-end optimizations for fast downloads.