Lazy Loading Above The Fold Images

Is there a way to prevent above-the-fold images from being lazy-loaded? Seems like the cornerstone or pro theme forces all the images to lazy load by default.

Tried excluding the images above the fold from being lazy-loaded via WP Rocket, but it looks like the Pro Theme and Cornerstone setup override the WP Rocket implementation.

Hello @rambogrey,

Thanks for writing to us.

Add this to your child theme’s functions.php to turn off native WordPress lazy loading entirely.

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

Please note that the code shared above is provided as a general guide to help you get started and is not covered under our standard support scope. Any implementation, troubleshooting, or ongoing maintenance of this customization would need to be handled by a developer you hire or by subscribing to our One service, where customization-related questions are answered.

Thanks