Hacker News new | ask | show | jobs
by yellow_lead 895 days ago
That's a nice workaround but still just a bandaid in my opinion. Instead of a "flash of undefined component" you get a flash of whatever the vanilla html is before your web component was loaded. Now you have to adjust the vanilla html to look as close to your web component as possible, at which point you may just want to use vanilla html and css altogether and ditch the web component.
1 comments

Use a loading overlay that will show for 0.25 seconds if you're that concerned about this
User delays of 100-300 ms is perceptible to the user. This is the exact issue we want to avoid.
And in that delay they'll see a loading screen