"optimización de css y javascript" por @lucascepeda

39
Optimización CSS y JavaScript @lucascepeda WebcatBCN, 14/03/2012

Upload: webcat

Post on 12-Jan-2015

903 views

Category:

Technology


0 download

DESCRIPTION

Presentación realizada en el #webcat Barcelona de Marzo del 2012Autor: Lucas Cepeda (@lucascepeda)------------------------------------------------RECURSOS:- YUI Compressorhttp://developer.yahoo.com/yui/compressor/- Minifyhttp://code.google.com/p/minify/- Avoid document.writehttp://code.google.com/speed/page-speed/docs/rtt.html#AvoidDocumentWrite- JavaScript object structure: speed mattershttp://jsperf.com/javascript-object-structure-speed-matters/2- id vs class vs tag vs pseudo vs. attribute selectorshttp://jsperf.com/id-vs-class-vs-tag-selectors/2- JS: Selectores (CSS3 not vs .not)http://jsperf.com/jquery-css3-not-vs-not- Finding a DOM element (native vs jQuery vs Prototype)http://jsperf.com/finding-an-element-w-jquery/6- Loopshttp://jsperf.com/loops/29- Ternary Operators: a = falsehttp://jsperf.com/ternary-operators/3- localStorage vs. Cookieshttp://jsperf.com/localstorage-vs-objects/19- Website Speed Part 1: Write More Efficient CSShttp://speckyboy.com/2011/03/08/website-speed-part-1-write-more-efficient-css- CSS Specificity Should Be Irrelevanthttp://www.impressivewebs.com/css-specificity-irrelevant/- Optimize browser renderinghttp://code.google.com/speed/page-speed/docs/rendering.html- Our (CSS) Best Practices Are Killing UShttp://www.stubbornella.org/content/2011/04/28/our-best-practices-are-killing-us/- Performance Impact of CSS Selectorshttp://www.stevesouders.com/blog/2009/03/10/performance-impact-of-css-selectors- Page Speed Familyhttp://code.google.com/speed/page-speed/docs/- Exceptional Performancehttp://developer.yahoo.com/performance/- JavaScript object structure: speed mattershttp://ariya.ofilabs.com/2012/02/javascript-object-structure-speed-matters.html- Thinking Asynchttp://css-tricks.com/thinking-async/- jsPerf — JavaScript performance playgroundhttp://jsperf.com

TRANSCRIPT

Page 1: "Optimización de CSS y JavaScript" por @lucascepeda

OptimizaciónCSS y JavaScript

@lucascepedaWebcatBCN, 14/03/2012

Page 5: "Optimización de CSS y JavaScript" por @lucascepeda

CSS: Combinar

@lucascepeda WebcatBCN, 14/03/2012

<head> <link rel="stylesheet" type="text/css" href="styles/yellow.css"> <link rel="stylesheet" type="text/css" href="styles/blue.css"> <link rel="stylesheet" type="text/css" href="styles/big.css"> <link rel="stylesheet" type="text/css" href="styles/bold.css"></head>

Page 38: "Optimización de CSS y JavaScript" por @lucascepeda

Gracias

@lucascepedaWebcatBCN, 14/03/2012