I think that the loop function is not called at regular steps by the Firefox browser, in Chrome it is much more stable