Lazy loading / photo limit option for WordPress widget_photo_carousel
1 Vote
Requested
Joyous Escape
37 mins ago
Member for 4 years
1 post
The problem
The widget_photo_carousel shortcode loads every property photo at full slide size ("-Large", 1200×800) as soon as the page opens, even though visitors see only the first slide. On a listing with 45 photos, that's about 14 MB on mobile.
Impact
On my direct-booking site (joyousescape.com), Google PageSpeed Insights (mobile) shows:
- Main image appears after about 10 seconds. Google's "good" threshold is 2.5 seconds.
- Performance score in the mid-50s.
- "Improve image delivery" flagged with about 14.6 MB of potential savings.
Page speed is a Google ranking factor, and slow mobile pages lose bookers. This works against direct bookings, which is a key reason hosts use the WordPress plugin.
What I tried
- Re-uploading smaller photos doesn't help, because OwnerRez already serves 1200px images. The problem is how many load at once, not how big each one is.
- I added
loading="lazy"to the carousel images through a WordPress filter. The slider still downloads every image while it sets itself up, so there was no savings, and the page got layout shifts. I removed it.
Requested options (any one would solve it)
limitparameter, e.g.[ownerrez type="widget_photo_carousel" id="..." limit="15"], to show only the first N photos.- Built-in lazy loading: load the active slide plus the next one or two, and fetch the rest as the guest swipes.
- Responsive image sizes: serve "-Medium" (600×400, which already exists) on small screens through
srcset.
Who benefits
Every host using the WordPress plugin for direct bookings, especially those with large photo sets (30+ photos is common for STR listings).