-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Request: Lazy load offscreen images #1667
Comments
Do older and other browsers understand |
I think that browser doesn't undestand I had tested desktop browser compatibility on browsershots.org (including old browsers and Linux/Windows/macOS) with a simple example available here https://uneven-flowershop.glitch.me/ Firefox >=21 (released 6 years ago) |
I'm going to pass on this for. I'll revisit this when creating a new major version of the medialibrary. |
There is also a native |
I think we could optionally support the native attribute, allowing different values:
As seen on https://css-tricks.com/native-lazy-loading/ |
Google recommends for better performance
This feature is very simple, just prefix
src
,srcset
andsizes
withdata-
and add the class.lazyload
.I've been implementing lazy load and getting great results.
I implemented lazy load improvised in the view. Example:
I think there must be a native solution checking only the class attribute value, not entire
$attribute String
The text was updated successfully, but these errors were encountered: