Hacker News new | ask | show | jobs
by microflash 895 days ago
I usually hide the web components until they are defined using `:not(:defined)` CSS selector
1 comments

That causes CLS which is also an issue
My apologies. By 'hide', I meant hide visually (through `opacity: 0`) that keeps the space reserved to avoid CLS.
Do I understand correctly, this only works when the size of the component is determined from "above" in the layout tree? That sounds not generally useful...