3 ms·
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 bef
by yellow_lead 3y 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.
- hanniabu 3y agoUse a loading overlay that will show for 0.25 seconds if you're that concerned about this
- yellow_lead 3y agoUser delays of 100-300 ms is perceptible to the user. This is the exact issue we want to avoid.
- hanniabu 3y agoAnd in that delay they'll see a loading screen