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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:srcto provider-optimized URLswidthandheightsizesoption<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 timewidthandheightbased on ratiowebpandavifFuture Improvements
Nuxt image module is an ongoing development project, and we plan to keep improving:
widthandheightusing 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