Minify CSS / JavaScript / HTML
For viewing all tips see here
Applicable To
All Browsers
How Improves Page Load Time
o By optimizing network latency (HTTP Payload Size)
o By optimizing browser rendering
Prologue
[Detail of the technology / concept being used in the tip if required]
Why
Compacting Java code / CSS / HTML file can save many bytes and speed up downloading, parsing and execution time
How
o Eliminating unnecessary bytes such as extra spaces, line breaks and indentation
o Tools like JSMin, CSSMin.js or YUI Compressor can be used to compact JS files
Exceptions
None
Recommendations
Minify JS files that are 4096 bytes or larger in size, less than it will not show any visible performance gain.
Comments
Post a Comment