You can also improve the speed of your Web site through minifying —
making some of the files, like JavaScript, CSS, and HTML, smaller. This
involves taking all the files of your Web site and reducing the size by
doing things like
✦ Removing all line breaks and spaces in the file.
✦ Removing all code comments in the file.
✦ Removing unnecessary characters in the file.
✦ Using code shorthand, where possible, to decrease the amount of
characters in the file.
✦ Combining the files into one file, wherever possible; therefore, instead of
having ten JavaScript files, you could reduce the number to four or five.
Monday, 22 July 2013
Minifying JavaScript, CSS, and HTML
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment