Placeholder support
See original GitHub issueBasic 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:38
- Comments:12 (1 by maintainers)
Top Results From Across the Web
input placeholder attribute | Can I use... Support ... - CanIUse
Method of setting placeholder text for text-like input fields, to suggest the expected inserted information. Usage % of. all users, all tracked, tracked...
Read more >placeholder - CSS: Cascading Style Sheets - MDN Web Docs
The ::placeholder CSS pseudo-element represents the placeholder text in an or element.
Read more >HTML Placeholder browser compatibility - Stack Overflow
The placeholder attribute is supported in all major browsers, except Internet Explorer. FYI: This includes IE9. screenshot. Share.
Read more >Zendesk Support placeholders reference
Zendesk Support placeholders are containers for dynamically generated ticket and user data. The format is a data reference contained within ...
Read more >Placeholders - The jQuery replacement for select boxes
Placeholders. Select2 supports displaying a placeholder value using the placeholder configuration option. The placeholder value will be displayed until a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Any ETA for this?
please merge this cool feature 😃