Hacker News new | ask | show | jobs
by jakub_jo 1494 days ago
Invoking `getComputedStyle` should also do the trick: https://developer.mozilla.org/en-US/docs/Web/API/Window/getC...
1 comments

getComputedStyle causes a layout to occur, but doesn't guarantee that rendering is actually done.