News for hackers. Stuff that matters.
Re:Passive event listeners by totony on Wednesday August 16, 2017 @07:14PM (#15032151)
how does having a function(){setTimeout(handler,1)} compare to this?
Re:Passive event listeners by dkh99 on Thursday August 17, 2017 @11:18AM (#15037510)
That function won't block the rendering operation. Having a lot of timeouts/etc. will potentially slow the JS down in general (indirectly slowing the page down or costing battery, CPU, etc., but it will not cause the user-action jank that the article is talking about.