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?
[ Parent
| on HN ]
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.