Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created April 26, 2022 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukecav/30c53435b740eaaab9b093575fe106f8 to your computer and use it in GitHub Desktop.
Save lukecav/30c53435b740eaaab9b093575fe106f8 to your computer and use it in GitHub Desktop.
Disable lazy loading in WordPress
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
@lukecav
Copy link
Author

lukecav commented Apr 26, 2022

@pascalduboin
Copy link

or define( 'WP_DISABLE_LAZY_LOADING', true ); in wp-config.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment