3 ms·
Similar to many gui frameworks you have a run loop that processes an event pool and a render sequence over and over and over. Events are queued and dispatched i
by seanalltogether 16y ago
Similar to many gui frameworks you have a run loop that processes an event pool and a render sequence over and over and over. Events are queued and dispatched into the event pool as the browser receives them, followed by dom updates being processed in the render step. However this isn't always true and many javascript code blocks can force an immediate render(Text is deferred, canvas is immediate, not sure about css).
For this reason your event pool can be delayed significantly while waiting for rendering to complete.
- daleharvey 16y agocss causes immediate renders but does occasionally batch changes (I think opera was the best at that) Its inconsistent implementation meant you really are best doing any style modifications off the dom and then reattaching when complete