Merge pull request #10090 from creative-commoners/pulls/4/image-loading-docs

DOC Mention image lazy loading available from 4.9 onwards
This commit is contained in:
Maxime Rainville 2021-09-14 14:08:45 +12:00 committed by GitHub
commit da3d5813b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,7 +283,7 @@ class Page extends SiteTree
} }
``` ```
#### Controlling lazy loading in for `<img>` tags in SS templates #### Controlling lazy loading in for <img> tags in SS templates
If you are manually writing `<img>` tags in your SS template, those images will not be automatically If you are manually writing `<img>` tags in your SS template, those images will not be automatically
lazy loaded. You will need to add the `loading="lazy"` attribute yourself if you want the image to be lazy loaded. You will need to add the `loading="lazy"` attribute yourself if you want the image to be