-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Native Lazy Loading of Images #2910
Comments
This has been added to latest 1.7 branch. |
Pretty cool this simple yet powerful browser native feature has been added as a config in Grav. |
That is great :-) Another related suggestion is to include the height="" and width="" properties, so there is no possibility of jank when lazy loading (I understand it also stops jank even when not lazy loading). I realise that might be more difficult, as you would need to know the image file width and height. |
That's strange. I've upgraded to 1.7 RC16 and Admin Panel v1.9.16, but these lines are missing in
|
I just checked and the lines are there: PS. Update your admin plugin to 1.10 as well! |
Native lazy loading of images is now supported in chrome and firefox.
https://caniuse.com/#feat=loading-lazy-attr
Would it be possible to support this in Grav? Possibly even setting it as the default for all images inserted through markdown?
Thanks!
The text was updated successfully, but these errors were encountered: