3 ms·
has about 4600 rules that all set a background-image of "//ssl.gstatic.com/chat/emoji/png28-... Is that possibly a sprite sheet with different background posit
by nitrogen 9y ago
has about 4600 rules that all set a background-image of "//ssl.gstatic.com/chat/emoji/png28-...
Is that possibly a sprite sheet with different background position for each rule?
- bzbarsky 9y agoAh, good catch. Yes, it is. See https://ssl.gstatic.com/chat/emoji/png28-7f9d3a5045813584f828fe69a1fecb77.png https://ssl.gstatic.com/chat/emoji/png28-7f9d3a5045813584f82... It could probably specify the background image only once in a rule that matches all the relevant things and then specify the background positions separately. Sure would be more efficient without the browser having to jump through hoops to deduplicate the url.