Stop using a spritesheet for site-icons

The site-icons spritesheet has already become unwieldy - it's almost
1MB, is mostly rarely-needed icons, and needs to be fully replaced and
re-downloaded whenever a new icon is added. With HTTP/2 now being widely
supported, spritesheets seem to be mostly obsolete, and I probably never
should have done it that way in the first place.

This commit changes over to simply using individual icon images, and
rebuilds the CSS file whenever new icons are downloaded. This new CSS
file will probably be somewhat large, but should gzip extremely well.
This probably still needs some work to support cache-busting on the CSS
file.
This commit is contained in:
Deimos
2019-03-12 13:06:58 -06:00
parent cd5db076ce
commit f4c4973dc0
13 changed files with 64 additions and 86 deletions

4
.gitignore vendored
View File

@@ -19,5 +19,5 @@ tildes/static/css/*
tildes/static/js/third_party.js
tildes/static/js/tildes.js
# don't track the site-icons spritesheet(s)
tildes/static/images/site-icons*
# don't track site icon files
tildes/static/images/site-icons/*.png