[openstreetmap/openstreetmap-website] Reduce size of application.js by removing translations? (#1949)

mmd notifications at github.com
Thu Aug 16 18:01:26 UTC 2018


> That branch is running at https://tomh.apis.dev.openstreetmap.org/ for people to try.

This looks very promising. In addition to reducing the download size, we also got rid of about 1.2s of Javascript parsing for all those translation. In Firefox, this affected every page where application.js was included, Chrome somehow cached the parsed result already.

## Chrome Dev Tools - Performance audit results

### Before

![bildschirmfoto von 2018-08-16 19-57-12](https://user-images.githubusercontent.com/5842757/44225780-a9bd8d00-a18e-11e8-9731-ea156161e79b.png)

### After

![bildschirmfoto von 2018-08-16 19-56-01](https://user-images.githubusercontent.com/5842757/44225778-a7f3c980-a18e-11e8-8483-a8440485f299.png)



-- 
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/1949#issuecomment-413633323
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180816/3724ed33/attachment-0001.html>


More information about the rails-dev mailing list