wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
692 stars 215 forks source link

Feature Request: Lazy Load Images In Ajax Requests (and serve from CDN) #2176

Closed ScottTravisHartley closed 3 months ago

ScottTravisHartley commented 4 years ago

When images and content are being served in an ajax request, they are not lazy-loaded or rewritten to be served from a CDN.

The ability to lazy load and serve images in an ajax request in a similar fashion to Shortpixel AI. https://wordpress.org/plugins/shortpixel-adaptive-images/

Describe alternatives you've considered Used the above plugin to get the desired behavior.

As the plugin describes "Check this if you have specific pieces of content that are delivered by Javascript in JSON-encoded packages. Some galleries like the one in Thrive Architect, or posts grids with infinite scroll need that."

I see this as an issue the most on sites built with thrive architect and with visual composer post grids.

DahmaniAdame commented 4 years ago

Similar request - https://secure.helpscout.net/conversation/1279373712/194063/

vmanthos commented 3 years ago

Similar request: https://secure.helpscout.net/conversation/1642536919/297222/

piotrbak commented 3 months ago

This is not something that can be implemented soon. We might reopen this in the future.