mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-17 23:08:32 +02:00
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:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user