This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Description
AIUI from Issue #112, certain calls such as getBoundingClientRect()
may defeat the optimization by causing the subtree to get activated/laid out.
Perhaps it would make sense to suggest implementation give a warning. For will-change
, Firefox's implementation will issue a warning. IIRC it will warn once per page and will ignore if the total will-change surface area is 3x the document viewport to avoid OOM.
I think it would make sense to surface a one-off warning when code is defeating the optimization inadvertently. For instance I'm not sure if querySelecterAll('img')
would defeat the optimization or not.