lazy: Defer loading of the resource until it reaches a calculated distance from the viewport.Here are the supported values for the loading attribute: You can use the loading attribute to completely defer the loading of offscreen images that are reached by scrolling: Images below the viewport are loaded with a lower priority, but they're still fetched as the page loads. The loading attributeĬhrome loads images at different priorities depending on where they're located with respect to the device viewport. ![]() Browser-level lazy loading also ensures that deferred loading of images still works even if JavaScript is disabled on the client. With lazy loading supported directly by the browser, however, there's no need for an external library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |