Home › Forums › General Issues › WordPress native Lazy Loading with ACF image field › Reply To: WordPress native Lazy Loading with ACF image field
Enabling the lazy load may be confused you
Sorry about that i will update the post next few days. Proper Title is add_theme_support for Lazy Load in fnctions.php is super easy and useful instead of using Plugin
Lazy-Loading Images in WordPress Core
The loading attribute currently supports two possible values:
The implementation seeks to enable lazy-loading images by default, providing the loading attribute with value lazy on the following img tags:
Note that loading=”lazy” will only be added if the respective tag does not yet include a loading attribute. In other words, to prevent an image from being lazy-loaded, it is recommended to specify loading=”eager”.
Source and more info in the Make WordPress
This is used to add( support ) the loading=”” in the templates and to be able to play with it
For example Lazy Load in WordPress since xxx Version is enabled by default. Mean everywhere lazy will be add to the images. I don’t need loading lazy for some specific parts of the template and the site. One of the most common errors by the Web Developers is to keep the lazy load enabled for all supported types in above the fold.
add_theme_support( ‘lazy-load’ );
means this will be supported as a tag for the custom template you build
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.