by chrismorgan · 4y ago · 0 comments
Do not use GIFs like this. Use a proper video codec.
(I’ve actually flagged this submission, because 120MB is far, far more than anyone reasonable would expect to be downloaded automatically by visiting a page, and expensive for some people—there have been multiple occasions for me in the past few years when it would have literally cost me around $10 to load the page.)
So that page would have cost me roughly $2k to load if there were no automatic limit :)
Not a defense, but worth noting in the interest of full advice here that Github's README preview (what's showing here) does not support embedded videos, which is why GIFs are a popular choice.
That said, a good workaround for this is simply putting something like:
[](path/to/video/file/or/youtube/link)
This has the double advantage of not hitting your gpu/cpu on load (especially good for mobile) since there's no autoplay.they should advertise that more obviously via the ui, but I guess that kind of feature discoverability has never been github's style
So you no longer need to host images externally, in an issue, or in an assets directory in the repo. I wish this were more well known.
All our carriers said they wouldn't introduce roaming fee's pre-Brexit, then did to the surprise of no-one but the Brexiteers.
- mjpeg
- apng
- WebP Animation
(Incidentally: why are you mentioning Chrome? All mainstream browsers support these.)