Javascript Game Development – The Game Loop

One of the most important parts of a game engine is the so called “game loop”. It is the central piece of the game’s engine and is responsible for trying to balance running a game’s logic, and executing its drawing operations

This article explains on how to create such a game loop yourself, without blocking the UI Thread.