Deferring to the Consumer Interface When executing long-running JavaScript code the web browser’s Consumer Interface (UI) stays unresponsive because of the notorious single-threaded nature of JavaScript. Consequently it is helpful in time-consuming JavaScript code, to defer again to the UI occasionally, to let consumer occasions like scrolling, clicking and typing all take their pure course….

Read More