it will be better if you include preloading all sprites (including frames) and sounds on starting of the game
Develop games in your browser. Powerful, performant & highly capable.