Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
c0balt
· 1y ago · 0 comments
Wouldn't this lead to a delay of time to first content render? If you rely on display then a layout shift would also be an issue for JS-capable clients.
Comments
[–]
charrondev
1y ago
Write that tiny of bit of JS inline in the head and put the class/attribute on the html element.