Home:ALL Converter>JS browser event handling

JS browser event handling

Ask Time:2015-01-08T23:21:03         Author:Andrei Hrabouski

Json Formatter

Right now I've got a little bit confused with browser events. I'm still not sure how event loop starts working. For example, when I dispatch custom event in the mid of some function, does event handling start right away or is it moved to the event queue? And what about other events? If I click or the page is loaded, what happens? When does the event handling process begin?

Author:Andrei Hrabouski,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/27843499/js-browser-event-handling
yy