Make the first iteration as soon as the canvas is setup, avoiding a black screen before the next animation frame is requested. Also create OS and do setup before syncing FS to avoid crash when IDBFS access is denied.
title