Skip to content
Advertisement

Tag: html-rendering

Is DOM rendering GUARANTEED to block during a single (synchronous) function’s execution?

DOM blocking is something many people not familiar with JavaScript’s strictly single-threaded synchronous execution model find out about the hard way, and it’s usually just something we want to work around somehow (using timeouts, web-workers, etc). All well and good. However, I would like to know if blocking of the actual user-visible rendering is something you can actually rely on.

Advertisement