ݺߣ

ݺߣShare a Scribd company logo
Website optimizer
HTML, CSS & JAVASCRIPT
What?
? ? ?
Minify
?
Minify
?
Concatenate
?screen.css
body {
display: block;
}
nav.css
li {
float: left;
}
forms.css
div.btn {
cursor: pointer;
}
Concatenate
?screen.css
body {
display: block;
}
nav.css
li {
float: left;
}
forms.css
div.btn {
cursor: pointer;
}
combined.css
body {
display: block;
}
li {
float: left;
}
div.btn {
cursor: pointer;
}
Concatenate
?
Recompile
Website
Libraries
? Htmlcompressor
? https://code.google.com/p/htmlcompressor/
? YUI Compressor
? http://yui.github.io/yuicompressor/
? Closure-compiler
? https://code.google.com/p/closure-compiler/
Bert Verhelst
http://www.slideshare.net/bertyhell/website-optimizer
bert.co.nr

More Related Content

How to optimize a website

Editor's Notes

  1. Mobile marketshare increasing2G 3GReduces file size complete website (zip)
  2. Reduction in filesizewitouthknowing the contentMinify: removeallunneededcharactersConcatenate filesRecompile javascript
  3. CommentsNew linesWhitespacesbetween tags (tabs, spaces, new lines)
  4. A lot of small filesHeaderCombine files => 1 header
  5. Thismakesit a bit more difficultBecause the links dont match up in htmlSo i used a regularexpressiontoreplace the link tags to the correct tags
  6. Combine icons in 1 imageUsing cssSet as div backgroundTune background positionView 1 iconAdvisableto do itthis way for images thatdont have content (set via css)Blind ppldontneedanimgfor a button
  7. Google closure compilerCompileyour javascriptto more efficient javascriptRemovingunusedfunctionsinlinefunctionsif more efficientminifingExpectswelformed javascriptLint conormDont save functions as strings andexecutewithevalmethod
  8. Upload zipSelect optimizationsSee reportHistorychartReductionquite large, images causelessreductionCantoptimize images (convertallto gif) => bad result, need human