Skip to content

v1.2.12 - Scoped auto-sizes opt-out

Latest

Choose a tag to compare

@Jehu Jehu released this 04 Sep 16:39
· 3 commits to main since this release

Changed

  • WordPress core sizes="auto, …" is no longer disabled site-wide: layout-aware image sizing stays enabled and a per-image guard strips auto only from small attribute-sized images (#8)
  • Attribute-sized images (width below the mwe_etchwp_auto_sizes_min_width threshold, default 150) no longer receive srcset/sizes from the plugin; the browser sizes them from their width attribute (#10, #9)

Added

  • mwe_etchwp_disable_auto_sizes filter to restore the previous global disable (#8)
  • mwe_etchwp_auto_sizes_min_width filter controlling the attribute-sized threshold; invalid values are clamped to at least 1 (#8)

Fixed

  • Over-fetching on lazy-loaded content images (e.g. a lazy header logo fetched 2048w instead of 768w on large viewports) (#8)

Upgrade Notice

Image loading improves: WordPress core sizes="auto" is enabled again, so browsers pick better-fitting files for lazy-loaded images. Small icons keep their fixed sizing. If you need the old global disable, see the README's mwe_etchwp_disable_auto_sizes filter.