WordPress / performance

Performance plugin from the WordPress Performance Group, which is a collection of standalone performance modules.

Home Page:https://wordpress.org/plugins/performance-lab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Settings for Modern Image Formats

adamsilverstein opened this issue · comments

Feature Description

Since adding AVIF and <picture> element support, some potential improvements to the settings screen became apparent.

Potential Improvements

  • As @joemcgill mentioned in #73 (comment) we should properly handle sites that lack both AVIF and WebP support (~2% of sites).
  • <picture> element support is only useful when there is both a modern format (WebP/AVIF) and a JPEG fallback available for each sub size, eg. when the "Also output JPEG images" setting is enabled. Therefore, maybe the picture element support toggle should only be enabled when JPEGs are being generated? (and otherwise displayed in a greyed out "disabled" state)

@adamsilverstein Good points. Could this be done for the next release on June 6th?

@adamsilverstein Good points. Could this be done for the next release on June 6th?

Sure I am happy to work on this unless someone else wants to pick it up!