Multiple ChoiceHard 30s
Layout Thrashing
Interleaving reads (offsetHeight) and writes (style) in a loop causes:
Options
- 1An unbounded leak of DOM references now
- 2Forced synchronous reflows (layout thrashing)
- 3Starving the event loop of queued calls
- 4A long pause as the GC reclaims memory
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.