SlideShare une entreprise Scribd logo
1  sur  57
6
10   10   Apple Store Shinsaibashi
AOL Money & Finance
AOL Shopping
Bing

50ms
200ms                          -0.3%   -0.4%   500
500ms          -0.6%   -1.2%   -1.0%   -0.9%   1200
1000ms -0.7%   -0.9%   -2.8%   -1.9%   -1.6%   1900
2000ms -1.8%   -2.1%   -4.3%   -4.4%   -3.8%   3100
Google
•
•
• UX
•
          Velocity09 Merissa Mayer
Google
shopzilla.com

• 2.5 3.5sUP
•              7 12%UP

• PV 25%UP
6

1.

2.

3. httpRequest

4. Js    CSS

5. CSS

6.
•
Punyping
Punyping
Punyping




 80KB
Punyping
Punyping


           80KB




           56KB
Js CSS
Js CSS

                                                     300ms


<head>
<link rel="stylesheet" type="text/css" href="stylesheet1.css" />
<script type="text/javascript" src="scriptfile1.js" />
<script type="text/javascript" src="scriptfile2.js" />
<link rel="stylesheet" type="text/css" href="stylesheet2.css" />
<link rel="stylesheet" type="text/css" href="stylesheet3.css" />
</head>
Js CSS


                                                  200ms

<head>
<link rel="stylesheet" type="text/css" href="stylesheet1.css" />
<link rel="stylesheet" type="text/css" href="stylesheet2.css" />
<link rel="stylesheet" type="text/css" href="stylesheet3.css" />
<script type="text/javascript" src="scriptfile1.js" />
<script type="text/javascript" src="scriptfile2.js" />
</head>
http


• CSS Sprite
• Data URI
• CSS
CSS Sprite

• background-position
• Http
•                       Sprite
CSS Sprite
CSS Sprite
CSS Sprite
CSS Sprite




http://ja.spritegen.website-performance.org/
CSS Sprite
CSS Sprite
Data URI

data           URI(RFC2397)

inline image
URI

http

IE6,7
Data URI



<img class=”data-uri”
src=”data:image/
png;base64,....R0lGO”
alt=”” />
Data URI


<!--[if lt IE 8]>
<img src=”logo.png” alt=”” />
<![endif]-->
<img class=”data-uri”
src=”data:image/gif;base64,R0lGO”
alt=”” />
Webfonts
Webfont

@font-face {
    font-family: Makiba;
    src: url(MakibaFont13.eot);     /* IE */
    src: local("Makiba"),   /* webkit*/
    url(MakibaFont13.ttf) format("truetype");
}
Data URI
CSS


• ul li a{......}
• li a{......}
• a{.......}
CSS


• ul li a{......}
• li a{......}
• a{.......}
CSS


• ul li a{......}
• li a{......}
• a{.......}
CSS


• ul#gloabal-navigation li a{display:block;}
• ul#footer-navigation li a{display:block;}
• .navigation-link{display:block;}
CSS
CSS



•
•
OOCSS
OOCSS



           CSS


YUI   Grid CSS          OOCSS
Grid CSS
Nicole Sullivan   Facebook
OOCSS
OOCSS

unit
line
sizeXofY
OOCSS



OOCSS
OOCSS
• Yslow ! - Firebug plugin
• Google Page Speed - Firebug plugin
• MS Fiddler -
• AOL modsconcat - Apach
• W3C linkchecker -
Yslow!
W3C Link cheker
-moz-image-rendaring
-moz-image-rendaring


•Firefox 3.6
•auto
•optimizeQuality
•optimizeSpeed
•-moz-crisp-edges
-moz-image-rendaring
  img {
       image-rendering: optimizeSpeed;
/* Firefox,               (Gecko 1.9.2) */
       -ms-interpolation-mode: nearest-
neighbor;
/* Internet Explorer 7.0+ */
     }

‣IE7
‣Firefox   3.6
-moz-image-rendaring


  img[src$=".gif"] {
image-rendering: -moz-crisp-edges;
/* Fx, (Gecko 1.9.2) */
-ms-interpolation-mode: nearest-
neighbor;
/* IE 7+ */
}
11   11   13
OOCSS        Nicole Sullivan

Contenu connexe

Tendances

Be German About Your Frontend
Be German About Your FrontendBe German About Your Frontend
Be German About Your Frontend
Arush Sehgal
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Deepak Sharma
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
chriseppstein
 
網頁程式設計
網頁程式設計網頁程式設計
網頁程式設計
傳錡 蕭
 

Tendances (20)

Front End Web Development Basics
Front End Web Development BasicsFront End Web Development Basics
Front End Web Development Basics
 
Bootstrap Workout 2015
Bootstrap Workout 2015Bootstrap Workout 2015
Bootstrap Workout 2015
 
Just Your Type: Web Typography & You
Just Your Type: Web Typography & YouJust Your Type: Web Typography & You
Just Your Type: Web Typography & You
 
ゆるく学ぼう!現在のフロントエンドまとめ
ゆるく学ぼう!現在のフロントエンドまとめゆるく学ぼう!現在のフロントエンドまとめ
ゆるく学ぼう!現在のフロントエンドまとめ
 
Be German About Your Frontend
Be German About Your FrontendBe German About Your Frontend
Be German About Your Frontend
 
CSS Best practice
CSS Best practiceCSS Best practice
CSS Best practice
 
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
Cssbestpracticesjstyleguidejandtips 150830184202-lva1-app6892
 
Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors. Managing responsive websites with css preprocessors.
Managing responsive websites with css preprocessors.
 
HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)HTML5+CSS3 (入門編)
HTML5+CSS3 (入門編)
 
Efficient, maintainable CSS
Efficient, maintainable CSSEfficient, maintainable CSS
Efficient, maintainable CSS
 
Html5
Html5Html5
Html5
 
Css best practices style guide and tips
Css best practices style guide and tipsCss best practices style guide and tips
Css best practices style guide and tips
 
Sass: The Future of Stylesheets
Sass: The Future of StylesheetsSass: The Future of Stylesheets
Sass: The Future of Stylesheets
 
Css
CssCss
Css
 
Understanding CSS and the Debugging Console
Understanding CSS and the Debugging ConsoleUnderstanding CSS and the Debugging Console
Understanding CSS and the Debugging Console
 
Developing Your Ultimate Package
Developing Your Ultimate PackageDeveloping Your Ultimate Package
Developing Your Ultimate Package
 
CSS Reset
CSS ResetCSS Reset
CSS Reset
 
Implementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 WorkshopImplementing Awesome: An HTML5/CSS3 Workshop
Implementing Awesome: An HTML5/CSS3 Workshop
 
網頁程式設計
網頁程式設計網頁程式設計
網頁程式設計
 
CSS Systems
CSS SystemsCSS Systems
CSS Systems
 

Similaire à Make your website 2 times faster

Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)
Ontico
 
快速开发Css
快速开发Css快速开发Css
快速开发Css
tbmallf2e
 
建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版
Joseph Chiang
 
面向测试的前端知识
面向测试的前端知识面向测试的前端知识
面向测试的前端知识
chencheng 云谦
 

Similaire à Make your website 2 times faster (20)

Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
CSS and image optimization
CSS and image optimizationCSS and image optimization
CSS and image optimization
 
Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)Progressive downloads and rendering (Stoyan Stefanov)
Progressive downloads and rendering (Stoyan Stefanov)
 
Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索Frontend django, Django Web 前端探索
Frontend django, Django Web 前端探索
 
快速开发Css
快速开发Css快速开发Css
快速开发Css
 
About Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JSAbout Best friends - HTML, CSS and JS
About Best friends - HTML, CSS and JS
 
Build Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje JurišićBuild Better Responsive websites. Hrvoje Jurišić
Build Better Responsive websites. Hrvoje Jurišić
 
디자인 패턴과 YUI를 이용해 Rich UI 빠르게 구현하기
디자인 패턴과 YUI를 이용해 Rich UI 빠르게 구현하기디자인 패턴과 YUI를 이용해 Rich UI 빠르게 구현하기
디자인 패턴과 YUI를 이용해 Rich UI 빠르게 구현하기
 
EscConf - Deep Dive Frontend Optimization
EscConf - Deep Dive Frontend OptimizationEscConf - Deep Dive Frontend Optimization
EscConf - Deep Dive Frontend Optimization
 
Progressive Downloads and Rendering
Progressive Downloads and RenderingProgressive Downloads and Rendering
Progressive Downloads and Rendering
 
Walk on the Client Side - Chris Mountford
Walk on the Client Side - Chris MountfordWalk on the Client Side - Chris Mountford
Walk on the Client Side - Chris Mountford
 
HTML5 and CSS3 Techniques You Can Use Today
HTML5 and CSS3 Techniques You Can Use TodayHTML5 and CSS3 Techniques You Can Use Today
HTML5 and CSS3 Techniques You Can Use Today
 
建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版
 
HTML5: Introduction
HTML5: IntroductionHTML5: Introduction
HTML5: Introduction
 
Responsive content
Responsive contentResponsive content
Responsive content
 
面向测试的前端知识
面向测试的前端知识面向测试的前端知识
面向测试的前端知识
 
Html5 public
Html5 publicHtml5 public
Html5 public
 
[heweb11] HTML5 Makeover
[heweb11] HTML5 Makeover[heweb11] HTML5 Makeover
[heweb11] HTML5 Makeover
 
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages ApplicationsIBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
 
A High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI CompositionA High-Performance Solution To Microservices UI Composition
A High-Performance Solution To Microservices UI Composition
 

Plus de Satoshi Kikuchi

Plus de Satoshi Kikuchi (17)

Foresee 見極めること
Foresee 見極めることForesee 見極めること
Foresee 見極めること
 
Responsive Web Design HTML5勉強会
Responsive Web Design HTML5勉強会Responsive Web Design HTML5勉強会
Responsive Web Design HTML5勉強会
 
The State of Web Development
The State of Web DevelopmentThe State of Web Development
The State of Web Development
 
The State Of Web Development (data only)
The State Of Web Development (data only)The State Of Web Development (data only)
The State Of Web Development (data only)
 
Html5 wh
Html5 whHtml5 wh
Html5 wh
 
サルでもできるWebデザイン:SwapSkills
サルでもできるWebデザイン:SwapSkillsサルでもできるWebデザイン:SwapSkills
サルでもできるWebデザイン:SwapSkills
 
サルでもできるウェブデザイン : SwapSkills 2010 Vol01
サルでもできるウェブデザイン : SwapSkills 2010 Vol01サルでもできるウェブデザイン : SwapSkills 2010 Vol01
サルでもできるウェブデザイン : SwapSkills 2010 Vol01
 
Html5 Loading
Html5 LoadingHtml5 Loading
Html5 Loading
 
WDE08 State of the web
WDE08 State of the webWDE08 State of the web
WDE08 State of the web
 
WDE08 BULLETPROOF A to Z
WDE08 BULLETPROOF A to ZWDE08 BULLETPROOF A to Z
WDE08 BULLETPROOF A to Z
 
WDE08 Designing for interaction with Ajax
WDE08 Designing for interaction with AjaxWDE08 Designing for interaction with Ajax
WDE08 Designing for interaction with Ajax
 
WDE08 Visualizing Web of Data
WDE08 Visualizing Web of DataWDE08 Visualizing Web of Data
WDE08 Visualizing Web of Data
 
WDE09 State of The Web Japanese version
WDE09 State of The Web Japanese versionWDE09 State of The Web Japanese version
WDE09 State of The Web Japanese version
 
WDE09 state of the web panel discussion
WDE09 state of the web panel discussionWDE09 state of the web panel discussion
WDE09 state of the web panel discussion
 
SwapSkills css3
SwapSkills css3SwapSkills css3
SwapSkills css3
 
WDE09 The usability for Japan and overseas
WDE09  The usability for Japan and overseasWDE09  The usability for Japan and overseas
WDE09 The usability for Japan and overseas
 
WDE08 CSS Reloaded Ja
WDE08 CSS Reloaded JaWDE08 CSS Reloaded Ja
WDE08 CSS Reloaded Ja
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 

Make your website 2 times faster