← Back to release summary

Pause event loop during modal dialogs

Category
Miscellaneous
Type
New or changed feature
Status
Enabled by default (Chrome 52)
Intent stage
None

Summary

When using alert(), confirm() or onbeforeunload, Chromium's old behavior was to block JS waiting for the result, but allows all declarative animations to continue. This change is to make all main-thread tasks (such as <marquee> and CSS 2d animations) also pause during this interval.

Standards & signals

Samples: http://jsfiddle.net/sfc75sg6/10/

View on chromestatus.com