Idle Until Urgent
I guess I'm an old man that hasn't smoked the hype, but I don't understand why one would write this:<p><pre><code>    const main = () => {
        setTimeout(() => drawer.init(), 0);
        setTimeout(() => contentLoader.init(), 0);
        setTimeout(() => breakpoints.init(), 0);
        setTimeout(() => alerts.init(), 0);
        requestIdleCallback(() => analytics.init());
    };
</code></pre>
over this:<p><pre><code>    function main(){
        setTimeout(drawer.init, 0);
        setTimeout(contentLoader.init, 0);
        setTimeout(breakpoints.init, 0);
        setTimeout(alerts.init, 0);
        requestIdleCallback(analytics.init);
    };</code></pre>