Site icon WP Beaches

Disable Lazy Loading in WordPress with a filter

Disable Lazy Load Wordpress

Since WordPress 5.5, lazy loading for images was implemented, this improves the perception of page load as the image is only loaded once in the viewport window.

You may not light it as it can have a jarring effect as the sudden load as you scroll or find that you have a clash with another lazy loading plugin or custom code, there is a filter to disable it in WordPress – wp_lazy_loading_enabled

Use it in your functions file like so…

add_filter( 'wp_lazy_loading_enabled', '__return_false' );
Exit mobile version