Native Lazy Loading
Lazy Loading is a technique that is on it's way towards wide support in modern browsers.
Accelerated Domains automatically adds the loading=lazy attribute to your <img> tags if no loading attribute is set.
note
This feature can be completely disabled for any Accelerated Domain on request. Get in touch with Servebolt Support if you want this feature disabled.
Native Lazy Loading Browser support
For more information see https://caniuse.com/loading-lazy-attr
Make Accelerated Domains ignore a specific image
There are two ways of making Accelerated Domains skip adding the loading="lazy" attribute to an image
- Add attribute
acd-skip-lazyto the<img>you want Accelerated Domains to skip
<img src="/image.png" acd-skip-lazy>
- Add
loadingattribute to the<img>. This can be either justloadingorloading="eager"
<img src="/image.png" loading>
<img src="/image.png" loading="eager">