3 ms·
I wonder what is user-hostile about it. Users have no concept of the event loop. Can’t remember being harmed by an alert() since forever. Last time was probabl
by ricardobeat 5y ago
I wonder what is user-hostile about it. Users have no concept of the event loop.
Can’t remember being harmed by an alert() since forever. Last time was probably six or seven years ago when pop-under ads where still a thing.
- travisd 5y agoAlert (essentially) blocks the main UI thread. This means that if you have a while(true){alert} kind of thing, it can be impossible to exit the page since you first have to exit the dialogue before you can take any other action (but of course the dialogue is immediately retriggered). This is better nowadays, but can still cause issues.
- another-dave 5y agoI'd love to see figures on how many people this hits in the wild, especially since you have the "prevent this site creating more dialogs" option.
- ricardobeat 5y agoThis was solved many years ago by having dialogs scoped to the active tab. You can just close the tab.