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

Andy Allan 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.

I feel that this whole "make everything client side" and "sling around API responses and parse them on the client using javascript" has few tangible advantages and is mainly being done "because architecture". We can already see the downsides of this with the translations - even split up per-language, we still need to get each client to download a bunch of stuff that will likely never be shown to them.

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...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180816/eddcdea1/attachment.html>

More information about the rails-dev mailing list