nepalmap_app icon indicating copy to clipboard operation
nepalmap_app copied to clipboard

Minification of resources

Open amitness opened this issue 8 years ago • 4 comments

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.

amitness avatar Oct 18 '16 07:10 amitness

We can also open a PR to Wazimap. :)

prashishh avatar Oct 18 '16 15:10 prashishh

Why not use node with gulp for it?

barbier avatar Oct 27 '16 12:10 barbier

@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.

cliftonmcintosh avatar Oct 27 '16 12:10 cliftonmcintosh

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

amitness avatar Nov 29 '16 15:11 amitness