All challenges
Multiple ChoiceHard 30s

Layout Thrashing

Interleaving reads (offsetHeight) and writes (style) in a loop causes:
Options
  1. 1An unbounded leak of DOM references now
  2. 2Forced synchronous reflows (layout thrashing)
  3. 3Starving the event loop of queued calls
  4. 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.

Play this in a 3-minute battle