Automated Minification of Media
When checking code out to deploy a Pidge instance, HTML templates, CSS and JavaScript files should be passed through a minifier to remove comments and excess whitespace.
We currently have a lot of wasted space in our HTML templates, CSS files, and JavaScript:
- verbose names for variables and functions
- comments
- excess whitespace [newlines, tabs, bunches of spaces instead of tabs]
[Python, when compiled to bytecode, has this kind of thing cut out automatically.]
These are good for development, but when deploying, it would be advantageous to reduce bloating of HTTP content to keep data transfer down and increase the speed with which browsers can render the page. Minifying removes excess whitespace and comments.
Also See "Minify JavaScript and CSS" at http://
Beware Obfuscation: it renames functions and variables and can break code, and prevent effective debugging. It gives only a minor advantage space-wise to minification, and we don't have to hide our code anyway...
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Low
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- Accepted for 3.0
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by