[openstreetmap/openstreetmap-website] Reduce size of application.js by removing translations? (#1949)
notifications at github.com
Fri Aug 17 06:56:00 UTC 2018
> I've always wanted to move browser to the client side so that we don't read all the data twice
That's a non-sequitur though. We could avoid reading all the data twice by just responding once with all the html (and some json for the map view highlighting) in the first place.
Making the browse pages entirely reliant on the API means that for a given request, the browser will be requesting info from the server in *deliberately the wrong format* and then having to convert it, instead of the server just responding with the same information in the format required in the first place.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev