[openstreetmap/openstreetmap-website] Minify JavaScript assets (#2522)
Guillaume Rischard
notifications at github.com
Mon Jan 27 00:37:28 UTC 2020
I'm surprised by this, so maybe I'm missing something?
It looks like we can save 187KB in total on an initial page load by minifying our javascript assets.
| name | url | Current weight | Minified | Gain |
| ---- |-----|----------------|----------|------|
| jquery | https://www.openstreetmap.org/assets/application-4934642fec473bcc983ced35b73efef8351ec964bb0a54a03db5f2b83f34b838.js | 238 KB (gzipped)|100 KB (gzipped)|-137 KB|
| everything else | https://www.openstreetmap.org/assets/index-f670501149e6de4638186c162f9755c3575c983eff2d88ba95a2dd589ec35de3.js | 37.7 KB (gzipped) | 23.6 KB (gzipped) | -14.2 KB |
| Polyfill | https://www.openstreetmap.org/assets/es6-cbef4846488dea91524dfb095136e8f00afb8e62082286a75691f60e0c2b52ed.js | 48.6 KB (gzipped) | 17.9 KB (gzipped) | -30.7 KB |
| piwik | https://piwik.openstreetmap.org/piwik.js | 22.8 KB (gzipped) | 20.2 KB (gzipped) | -2.6 KB |
| i18n | https://www.openstreetmap.org/assets/i18n/en-US-da3d0840212b2392116f574a7f20fbcb0658d1ac6ed0ca43cd69cfec475ed2f8.js | 8.8 KB (gzipped) | 8.1 KB (gzipped) | -676 bytes |
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200126/b2f5743f/attachment-0001.htm>
More information about the rails-dev
mailing list