Autoptimize 2.6 released

I just released AO26, which comes with a bunch of new features, improvements and bugfixes.

  • New: Autoptimize can be configured at network level or at individual site-level when on multisite.
  • Extra: new option to specify what resources need to be preloaded.
  • Extra: add display=swap to Autoptimized (CSS-based) Google Fonts.
  • Images: support for lazyloading of background-images when set in the inline style attribute of a div.
  • Images: updated to lazysizes 5.2.
  • CSS/ JS: no longer add type attributes to Autoptimized resources.
  • Improvement: cache clearing now also integrates with Kinsta, WP-Optimize & Nginx helper.
  • Added “Critical CSS” tab to highlight the criticalcss.com integration, which will be fully included in Autoptimize 2.7.
  • Batch of misc. smaller improvements & fixes, more info in the GitHub commit log.

The release has been tested extensively (automated unit testing, manual testing on several of my own sites and testing by users of the beta-version on Github), but as with all software it is very unlikely to be bug-free. Feel free to post any issue with the update here or to create a separate topic in this forum.
Happy holidays to all!
frank

4 thoughts on “Autoptimize 2.6 released”

  1. “Images: support for lazyloading of background-images when set in the inline style attribute of a div.”
    I was waiting for this long ago.
    But where I can find this option in Autoptimize settings?

    Reply
    • It’s not a separate setting; if lazyload is on in AO it should now simply also work on background-images when set in the inline style attribute of a node (div or other).

      Reply
      • Ok got it.
        But it would be good if there will be a separate option to lazyload background images that are set in the inline style attribute. Because the lazyload function of Autoptimize loads all the images eventually even if they are not in the viewport and because of this I personally prefer other plugin for lazy loading images.
        Opinion is it will be good to have the “lazyload background images” option as a separate option. So that only this functionality can be utilized.
        Can background images that are in Autoptimize CSS file can be lazyloaded?

        Reply
        • I’m always very careful adding new options, as one not only can have too limited but also too many choices 🙂
          Regarding background images that are in Autoptimize CSS file; those cannot be lazyloaded, no.

          Reply

Leave a Reply to Yasir Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.