3 ms·
It doesn’t work correctly until you root your element into the document under a proper div hierarchy (to simulate all selectors) and wait for it to half-render,
by wruza 6y ago
It doesn’t work correctly until you root your element into the document under a proper div hierarchy (to simulate all selectors) and wait for it to half-render, and then you remove it, which causes entire document to reflow twice, which is a “stupid workaround” part. With this API you cannot “measure” anything, you can only check what was the result of an already computed and pre-heated flow.
- Yaggo 6y ago> With this API you cannot “measure” anything, you can only check what was the result of an already computed and pre-heated flow. That's a valid point!