diff --git a/libgif.js b/libgif.js index b14e0e9..ba711e5 100644 --- a/libgif.js +++ b/libgif.js @@ -898,6 +898,9 @@ if (callback) load_callback = callback; else load_callback = false; + // Pause playback before the doStep() callback fires and frames[] is blank + player.pause(); + loading = true; frames = []; clear();