-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Basic placeholder property is currently supported for <NuxtImg> (via #477).
Usage: This will auto-generate a URL from same source and 10x10 dimensions:
<nuxt-img src=".." placeholder>It is also possible to give a custom placeholder (data)URL as a string or an array [width, height, quality] to customize URL generation behavior.
The original image will be loaded during hydration and after mounted.
Future enhancements:
- Fetch and inline placeholder as
data:url - Support smoother blurry versions when possible (depends on provider)
- Start loading images in parallel to hydration.
schmoker, jasontheiler, Tragio, datrinh, Robinrrr and 36 moreproductdevbook, salv0, SkullMasher, the94air, robbietjuh and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request