Ajapaik / ajapaik-web

Crowdsourcing of data for historic imagery (geotagging, face tagging, rephotography)
https://ajapaik.ee
GNU General Public License v3.0
27 stars 19 forks source link

Consider using static translation files generated by Django-statici18n #99

Open MaertHaekkinen opened 2 years ago

MaertHaekkinen commented 2 years ago

Currently, every time a request is made to Ajapaik Web App, an JavaScript translations are being downloaded. This naturally makes the site load slower and takes up more resources of the server.

It can be possible to generate static translation files which are only updated when needed, using https://github.com/zyegfryed/django-statici18n.

Of course for this to work properly, the generated files would either make use of ETags or have some sort a hash in the name of the file. This is how the browser is forced to fetch new content currently. ETags are used for images. Hash is used in static files (js,css,etc)