Y
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
joshspankit
895 days ago
That causes CLS which is also an issue
link
microflash
895 days ago
My apologies. By 'hide', I meant hide visually (through `opacity: 0`) that keeps the space reserved to avoid CLS.
link
yencabulator
895 days ago
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...
link