libgif-js
libgif-js copied to clipboard
Pause playback when loading a new GIF to avoid errors
If load_url is called while the GIF is playing, the doStep() callback will attempt to read the frames[] array, which has been cleared by load_setup().
Simple workaround is to pause the playback before frames[] is cleared.