Scheduling a non-essential work in AngularJS Using requestIdleCallback

September 23, 2016

Hi guys, As you all know, the browser runs on a single thread, meaning it can only do one thing at a time. so for example, every JavaScript function, handling a mouse click or just rendering an HTML, will be processed ONE by ONE, thus, some operations and processes would need to stop working while the first is still processed. Things become more complicated when we encounter a script because, first the browser needs to download the script (if necessary) and only then will it run it. As you might have already guessed, everything else STOPS and causes the...
no comments