CodeforNepal / nepalmap_app

An application that maps census and other official data for Nepal to make data more easily accessible and understandable to the public. Want to help us? Check out the Wiki.
https://nepalmap.org
MIT License
63 stars 42 forks source link

Minification of resources #74

Open amitness opened 8 years ago

amitness commented 8 years ago

The CSS and JS of the site can be minified to speed up loading time. We'll need to research how it is done in Django.

prashishh commented 8 years ago

We can also open a PR to Wazimap. :)

barbier commented 8 years ago

Why not use node with gulp for it?

cliftonmcintosh commented 8 years ago

@barbier

The CSS and JavaScript are in an upstream Django project, Wazimap. Wazimap (or Django) may have a way to minify resources. If so, I think we should use that. If Wazimap does not have the ability to minify, we might consider a PR to Wazimap to add that ability.

I would suggest that this should be configurable by environment because minified JS is harder to debug than un-minified JS. In fact, we found the cause of a bug in Wazimap because we were able to debug using un-minified JS. I think we should have un-minified JS in non-production environments.

amitness commented 7 years ago

Possible solution: Django Compressor suggested on the Python Users Group Nepal.