When visiting GitHub using a browser without color emoji support, it loads emoji glyphs as image files.

But when visiting GitHub using a browser that does have color emoji support, it lets the browser render the glyphs normally instead.

How can GitHub know whether the browser supports color emoji or not?