Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
microflash
· 2y ago · 0 comments
I usually hide the web components until they are defined using `:not(:defined)` CSS selector
Comments
[–]
joshspankit
2y ago
That causes CLS which is also an issue
[–]
microflash
OP
2y ago
My apologies. By 'hide', I meant hide visually (through `opacity: 0`) that keeps the space reserved to avoid CLS.
[–]
yencabulator
2y 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...