Ability to turn js files into minimised versions for production sites
Bug #1259650 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Currently in mahara most css and javascript files are not compressed/
It would be good if there could be a system that miniaturizes css / js files for production sites,
ie when $cfg->productio
I'm not sure how this will work - possibly an admin page with options on what to minimise (that can also be accessed via commandline for deployment scripts to access if needed) in conjunction with a mod_rewrite rule so that the correct files are accessed.
Or maybe some other way of doing it - it would be good to find out what others do for this kind of thing.
To post a comment you must log in.
A solution would be to setup mod_pagespeed for Apache. Not only does it minify Javascript and CSS, it also performs *many* other page optimizations. It’s licensed under Apache License 2.0. I've had great experience with it in the past.
https:/ /developers. google. com/speed/ pagespeed/ module