Hacker News new | ask | show | jobs
by jarek-foksa 4354 days ago
Thanks for response! You are right, I have just done some tests with a time-expensive "for" loop placed right before the addEventListener() call and the callback appears to be fired after the stack is cleared / the main function returns.