-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimised images. #4573
Optimised images. #4573
Conversation
This seems ok, but a bunch of these images aren't used anymore and we should just remove them anyway. Some thoughts:
Can you change this PR to be just the images under |
Happy to! I'll try to get around to it today. |
12ba80c
to
668dcb6
Compare
Couldn't most of those images in dist/ be SVGs? Do we still have the vector source for them somewhere? |
We already went through in #2785 and moved most of the image assets into the SVG spritesheet.
I think that covers everything! |
https://github.com/yangshun/awesome-spinners has some cool non-gif spinners, and the current spinner isn't optimised for retina. Maybe I'll take that as a project for a hacking weekend :). Could this be merged now as it is? |
Another thought on this: technically, we can but it's not a drop in replacement, and probably not worth it to redo the image and wire up a css transform and sort out all the cross browser issues, just to have a loading spinner that takes up a bit less space and looks a little nicer on retina displays. If you want to ImageOptim them though, that's cool. |
Cool, yeah if you really want to do this, I won't say no 👍 Watch out for |
I took a look and this seems fine, thanks @grischard 👍 |
Saved 91 KB out of 762 KB. 20.5% per file on average (up to 56.8%).
For every file, ImageOptim compared the different tools and picked the smallest file that was produced by a combination of
advpng
,pngout
andzopfli
for PNGs,svgo
for SVGs andgifsicle
for GIFs.No related issues, no code change, no functionality change, no visual differences in images (compression is lossless).