.webp is a superior image format in comparison to .gif. It can handle more colors and can be compressed into smaller files. Sadly discourse doesn’t allow it. Could this be changed?
For more information and an automatic .webp export from GH check this thread:
edit: support is good with the exeption of iOS/mobile safari. But will be supported with iOS 14