Disable Image Lazy Loading

ClassicPress has added support for image lazy loading (introduced in WordPress) in v1.5.0. This is designed to speed up your website by loading images when they are ready to be viewed in the browser.

Not everyone wants or needs the built-in image lazy loading, so you can disable it.

Add the following line to your theme’s functions.php file to disable image lazy loading:

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

If you prefer, you can also add the above code snippet to your utility plugin.