JulianNorton / weather-10kb-wxkb

Weather forecast that's high performance and accessible
https://wxkb.juliannorton.com
GNU General Public License v2.0
152 stars 49 forks source link

Evaluate feasibility of refactoring current and future SVGs into a spritesheet #182

Closed JulianNorton closed 6 years ago

JulianNorton commented 6 years ago

What's the current situation?

Right now the site will load three inline SVG to represent the weather status for now, today, and tomorrow. If we wanted a weekly weather design, the site could potentially show 6 unique icons.

What do you recommend?

SVGs are great because they're high resolution regardless of the device. They're loaded in now as an inline-svg with styles referenced in the <style> tag. It's worth investigating alternatives. Is a sprite-sheet of all our icons more performant? Right now there's about 15kb (5kb gzipped) available to add.

Any solution would have to compare to the current and purposed development:

  1. 3 unique inline SVGs
  2. 6 unique inline SVGs
  3. Purposed implementation
JulianNorton commented 6 years ago

closing to clean up the issue backlog