Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jakub_jo
· 4y ago · 0 comments
Invoking `getComputedStyle` should also do the trick:
https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...
Comments
[–]
londons_explore
4y ago
getComputedStyle causes a layout to occur, but doesn't guarantee that rendering is actually done.