3 ms·
how does having a function(){setTimeout(handler,1)} compare to this?
by totony 9y ago
how does having a function(){setTimeout(handler,1)} compare to this?
- dkh99 9y agoThat 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.