Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Auto-sizes for Lazy-loaded Images icon

Auto-sizes for Lazy-loaded Images

v1.4.0

Instructs browsers to automatically choose the right image size for lazy-loaded images.

30K+ active installs Updated Dec 18, 2024 Tested to 6.7.2 Requires PHP 7.2
Try Demo Download
Pre-installed Ready in ~10s No card
Auto-sizes for Lazy-loaded Images

About Auto-sizes for Lazy-loaded Images

This WordPress plugin enhances the responsive images functionality by improving the accuracy of the sizes attribute and implementing the new HTML spec for lazy-loaded images. It integrates with the Image Prioritizer plugin to prioritize and add lazy loading and sizes=auto to images below the fold. There are no settings or user interface for this plugin as it works without any configuration.

Frequently asked questions

What does this plugin do?
This plugin enhances responsive images in WordPress by improving the accuracy of the sizes attribute. It also implements the new HTML specification for adding sizes="auto" to lazy-loaded images.
Does this plugin have any settings or a user interface?
No, there are currently no settings or user interface for this plugin. It is designed to work without any configuration.
How does this plugin integrate with Image Prioritizer?
When the Image Prioritizer plugin is active, this plugin extends its functionality to add sizes=auto to the lazy-loaded images identified by Image Prioritizer.

Changelog

1.4.0

Features

  • Accurate Sizes: Incorporate layout constraints in image sizes calculations. (1738)

Enhancements

  • Accurate sizes: Pass parent alignment context to images. (1701)
  • Accurate sizes: Reorganize file structure by feature. (1699)
  • Accurate sizes: Support relative alignment widths. (1737)
  • Remove auto_sizes_get_layout_settings(). (1743)

Bug Fixes

  • Accurate sizes: Disable layout calculations for classic themes. (1744)

1.3.0

Enhancements

  • Move Auto Sizes logic from Enhanced Responsive Images to Image Prioritizer. (1476)
  • Update auto sizes logic in Enhanced Responsive Images plugin to no longer load if already in Core. (1547)

1.2.0

Enhancements

  • Harden logic to add auto keyword to sizes attribute to prevent duplicate keyword. (1445)
  • Use more robust HTML Tag Processor for auto sizes injection. (1471)

Bug Fixes

  • Remove sizes attribute when responsive images are disabled. (1399)

1.1.0

Features

  • Initial implementation of improved image sizes algorithm. (1250)

Enhancements

  • Improved image sizes for left/right/center alignment. (1290)
  • Integrate Auto Sizes with Image Prioritizer to ensure correct sizes=auto. (1322)
  • Update Auto-sizes for Lazy-loaded Images plugin name to Enhanced Responsive Images. (1335)
  • Use correct sizes for small images. (1252)

Documentation

  • Update the plugin description for Enhanced Responsive Images. (1339)
  • Update the plugin header description. (1344)

1.0.2

  • Improve overall code quality with stricter static analysis checks. (775)
  • Bump minimum PHP requirement to 7.2. (1130)

1.0.1

  • Add auto-sizes generator tag. (1105)
  • Bump minimum required WP version to 6.4. (1062)
  • Update tested WordPress version to 6.5. (1027)

1.0.0

  • Initial release of the Auto-sizes for Lazy-loaded Images plugin as a standalone plugin. (904)

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.