rubynz / kiwi-ruby-2017

The conference website for Kiwi Ruby 2017
https://2017-kiwi.ruby.nz
MIT License
2 stars 2 forks source link

Remove unused assets from the ServiceWorker pre-cache #67

Closed ndorfin closed 7 years ago

ndorfin commented 7 years ago

An audit is required, but it looks like the following files are included in the pre-cache, and they might not used by the client:

Fonts:

/assets/public/fonts/fontawesome-webfont.eot (Not sure where theses fontawesome files come from - remnants of a build folder?)
/assets/public/fonts/fontawesome-webfont.ttf
/assets/public/fonts/fontawesome-webfont.woff
/assets/public/fonts/fontawesome-webfont.woff2
/assets/public/fonts/fontawesome-webfont.svg

/assets/public/fonts/OleoScriptSwashCaps-Regular.woff2 (This is now a logotype on the homepage)
/assets/public/fonts/YoungSerif-Regular.woff2 (Not used)

Images:

/images/sponsor-logos/sponsor_addressfinder_770.png (Not used)
/images/sponsor-logos/addressfinder.png (Not used, was reformatted)
/images/sponsor-logos/boost-horizontal.png (Not used)
/images/sponsor-logos/sponsor_boost_500.png (Not used)
/images/sponsor-logos/sponsor_boost_770.png (Not used)
/images/sponsor-logos/sponsor_boost_tall_770.png (Not used)
/images/sponsor-logos/boost-tall.png (Not used)
/images/sponsor-logos/icelab.svg (Not used)
/images/sponsor-logos/sponsor_loyalty_500.png (Not used)
/images/sponsor-logos/loyalty.png (Not used, was reformatted)
/images/sponsor-logos/sponsor_optimal_workshop_770.png (Not used)
/images/sponsor-logos/optimal.png (Not used, was reformatted)
/images/sponsor-logos/sponsor_rabid_770.png (Not used, was reformatted)
/images/sponsor-logos/sponsor_rabid_500.png (Not used - we should use this on the scholarships page)
/images/sponsor-logos/sponsor_storypark_500.png (Not used - we should use this on the Childcare page)
/images/sponsor-logos/sponsor_storypark_770.png (Not used)
/images/sponsor-logos/sponsor_the-last-pickle_770.png (Not used)
/images/sponsor-logos/the-last-pickle.png (Not used, was reformatted)
/images/sponsor-logos/sponsor_trineo_500.png (Not used)
/images/sponsor-logos/trineo.png (Not used, was reformatted)
We use gembirb-up.svg as the footer logo, but these seem to be copies:
/images/gembirb.png (Not used, source image?)
/images/gembirb.svg (Not used, source image?)
/images/kiwirubylogotype.svg (Not used, source image?)
/images/rubylogo.png (Not used, source image?)
/images/sirocco.gif (Not used on the site - maybe externally?)

There are a few choices we could make with these files after we've audited them:

mermop commented 7 years ago

Fixed by #70 and #71