Replies: 2 comments 1 reply
-
@pi0 Hey Is there any plugin for lazy loading image? |
Beta Was this translation helpful? Give feedback.
1 reply
-
For nuxt 3 - |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related:
Why
Images in the browser, are often not optimized:
You can read more about the ongoing work by the Aurora team on https://web.dev/image-component/
How
Nuxt Image provides multiple solutions and features to solve the issues with images performance:
<nuxt-img>
is a drop-in replacement for the native<img>
element:src
to provider-optimized URLswidth
andheight
sizes
option<img>
attributes<nuxt-picture>
is a drop-in replacement for the native<picture>
element.<nuxt-picture>
is almost identical to<nuxt-img>
having the benefit of serving legacy+modern formats at the same timewidth
andheight
based on ratiowebp
andavif
Future Improvements
Nuxt image module is an ongoing development project, and we plan to keep improving:
width
andheight
using a warning to hint correct sizes<nuxt-img>
over plain<img>
(feat(rule): add no-img-element eslint-plugin-nuxt#177)-Other enhancement issues
Nuxt Support Status
Nuxt 2 (0.x)
Nuxt 3 (1.x)
Beta Was this translation helpful? Give feedback.
All reactions