A smart infinite loop in JavaScript that doesn't slow down the browser.