29 ms·
I discovered a bug like this with GIFs too. It turns out some gifs can be encoded such that it is animated and a single frame long. Can’t remember the exact ev
by LASR 3y ago
I discovered a bug like this with GIFs too. It turns out some gifs can be encoded such that it is animated and a single frame long.
Can’t remember the exact event name now, but the browser fires a play event when gifs loop.
This particular gif was issuing too many of these play events that made the app super slow and freeze since it was doing some work in those handlers.
We had a bunch of crash reports and bug reports. None of those showed the actual gifs our customers were using. When we asked for the actual gif, we immediately spotted the problem.