WordPress plugin

Autoptimize Pro

Autoptimize Pro is a premium Power-Up subscription that adds page caching, image optimization, CDN support, automatic critical CSS rules and extra booster options to Autoptimize. The options work together across page delivery and front-end assets, with the right mix depending on each site.

Autoptimize Pro

Autoptimize Pro is a premium Power-Up subscription that adds page caching, image optimization, CDN support, automatic critical CSS rules and extra booster options to Autoptimize. The options work together across page delivery and front-end assets, with the right mix depending on each site.

Configure scripts and styles

Autoptimize can aggregate, minify and cache CSS and JavaScript, and minify HTML. CSS goes in the page head by default. With aggregation enabled, styles are placed in the head and scripts can be moved and deferred to the footer. Critical CSS can be inlined while the aggregated full stylesheet is deferred. You can also turn off aggregation while keeping minification enabled.

The settings cover image optimization and lazy loading, including WebP and AVIF support. They can also optimize Google Fonts, process asynchronous non-aggregated JavaScript and remove WordPress core emoji code. HTTP/2 reduces the impact of multiple requests, but minification or aggregation may still suit a particular configuration. Compare settings on the website itself: configure, test the pages, adjust and test again.

Image and CDN delivery

Image optimization relies on the service being able to fetch the original image. Firewall rules, password protection, proxies or hotlinking restrictions can prevent processing when files are not publicly accessible.

CDN support can route Autoptimize-generated CSS and JavaScript through a configured CDN root, including background pictures referenced by CSS. To route WordPress uploads through a CDN, change the upload URL setting; it applies to images uploaded after the change, not files already in the media library.

Test changes and troubleshoot

Review the settings and enable the options that fit the site. After changing aggregation, deferral, critical CSS, image or font settings, check the resulting pages. If something behaves unexpectedly, adjust the relevant options and test again. Avoid running multiple extensions that minify HTML, CSS or JavaScript at the same time; page caching add-ons may also have their own minification settings.

An extensive API supports further customization. Help is available through the WordPress support forum, and confirmed code bugs can be reported on GitHub. Premium support and web performance optimization services are also available for Autoptimize Pro.

Remove Autoptimize

Disable the extension, remove it, then clear any page cache that may still contain pages referring to its optimized CSS or JavaScript. This includes caches managed by other page caching plugins.