question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Placeholder support

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:38
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
Rigo-mcommented, Oct 11, 2021

Any ETA for this?

6reactions
omp-gitcommented, Feb 20, 2022

please merge this cool feature 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found