-
Notifications
You must be signed in to change notification settings - Fork 23
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
Defer offscreen images #25
Comments
Looking into the impact of non-lazy-loading vs. native lazy-loadingPR: #24 Non-lazy-loading carousel images: Native lazy-loading carousel images: According to #23 (comment), it seemed like the Comparing the payloads (counts of the downloaded images on landing) in the following two cases, I believe native lazy-loading is good enough (probably thanks to https://web.dev/browser-level-image-lazy-loading/#improved-data-savings-and-distance-from-viewport-thresholds). In addition, using the native lazy-loading might be better for UX according to: cc @addyosmani |
Hi @anton-karlovskiy. I've made #26 to use nuxt/image ( @addyosmani Any suggestions for component behavior improvements is more than welcome. This way we can advocate best practices by using image module :) |
I'm logging: |
Certainly! I would say that it's worth keeping an eye on next-image to get a sense of the optimizations for image loading we've been working on with the Next.js team. Some of the first gaps I observed vs. nuxt-image were around the |
Thanks for feedback @addyosmani. I will into next-image regarding |
The original project was using https://github.com/addyosmani/nuxt-movies/blob/dev/plugins/lazyload.js for lazy-loading images but it seems like it's not compatible with responsive images using
srcset
andsizes
attributes.@pi0 @danielroe @addyosmani
Could you please teach me what (a third-party package or an approach) to use for lazy-loading images?
FYI: in the first place, I'm going to test with the native lazy-loading (https://web.dev/browser-level-image-lazy-loading/) but from my experience, due to Distance-from-viewport thresholds, the payload was not small enough.
The text was updated successfully, but these errors were encountered: