Sometimes it gets stuck and doesn't show the whole gif but I just assume that's my/the website's connection.
I wonder if this technique can optimize preloading.
For instance, we could send out only 1/2 of the frames (of course, with twice the delay to keep the same animation speed), then load the rest as it's available.
I have no idea what I'm talking about yet, but there seem to be something here.
- First load first frame on lowres (may be so lo that is blurred)
- Then add a small rotating loading icon on top of image, possibly with a notation that is a GIF
- Then load first frame completely at correct resolution
- Then load all the other frames in the background, only showing me the first frame still
- When all frames are completely loaded, remove loading rotating icon and run the GIF normally.