SlideShare una empresa de Scribd logo
1 de 23
High Performance Web Sites
Alexandre Porfírio
http://alexandreporfirio.com
#1   Make Fewer HTTP




     http://www.alexandreporfirio.com   2
#2   Use a Content Delivery Network




         http://www.alexandreporfirio.com   3
#3   Simple HTTP header




     http://www.alexandreporfirio.com   4
#4   Gzip compression




     http://www.alexandreporfirio.com   5
#5   Put Stylesheets at the Top




        http://www.alexandreporfirio.com   6
#6   Put Scripts at the Bottom




       http://www.alexandreporfirio.com   7
#7   Avoid CSS expressions




      http://www.alexandreporfirio.com   8
#8   JavaScript and CSS external




        http://www.alexandreporfirio.com   9
#9   Reduce DNS Lookups




     http://www.alexandreporfirio.com   10
#10      Minify JavaScript




      http://www.alexandreporfirio.com   11
#11       Avoid Redirects




      http://www.alexandreporfirio.com   12
#12   Remove duplicate scripts




         http://www.alexandreporfirio.com   13
#13    Configure ETags




      http://www.alexandreporfirio.com   14
#14   Make Ajax cacheable




       http://www.alexandreporfirio.com   15
Uses redirects
   Amazon            no
   CNN              yes ................. Initial page
   eBay             yes ................ Secondary page
   MSN              yes ................ Initial page
   Wikipedia        yes ................ Secondary page
   Google            no



                  http://www.alexandreporfirio.com     16
time


Redirect

HTML

Script

Stylesheet

Stylesheet

Stylesheet

Image




             http://www.alexandreporfirio.com      17
External scripts minified
   Amazon      ............................................ no
   CNN          ............................................ no
   eBay        ............................................ yes
   MSN         ............................................ yes
   Wikipedia   ............................................ no
   Google      ........................................... yes



                      http://www.alexandreporfirio.com             18
External minified                      |   Inline minified

   Amazon              no ........................... no
   CNN                 no ........................... no
   eBay               yes ........................... no
   MSN                yes ........................... no
   Wikipedia           no ........................... no
   Google              yes ........................... yes



                    http://www.alexandreporfirio.com                         19
Duplicate Script
                     Scripts                          Stylesheets
   Amazon                3      .......................... 1
   CNN                 11       .......................... 2
   eBay                 7       .......................... 2
   MSN                  9       .......................... 1
   Wikipedia            3       .......................... 1
   Google              1        .......................... 1

                   http://www.alexandreporfirio.com                 20
Page weight | Response time
   Amazon        405k ................. 15.9 sec
   CNN           182k ................. 11.5 sec
   eBay          275 k ................ 9.6 sec
   MSN           221k ................ 9.3 sec
   Wikipedia     106k ................ 6.2 sec
   Google          18k ................ 1.7 sec



                http://www.alexandreporfirio.com    21
Gzip | JSMin Dojo | Compressor


 Amazon       48k ............ 7k .................. 6k
 CNN         29k ............. 6k .................. 6k
 Wikipedia   13k ..............5k ................... 5k




                http://www.alexandreporfirio.com            22
Thank you!


Alexandre Porfírio
http://alexandreporfirio.com


                        http://www.alexandreporfirio.com   23

Más contenido relacionado

Destacado

josef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATEDjosef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATED
Josef Joe Klaasen
 
時間はあるけど作業できない
時間はあるけど作業できない時間はあるけど作業できない
時間はあるけど作業できない
さい ぞう
 

Destacado (15)

Task 2 planning
Task 2   planningTask 2   planning
Task 2 planning
 
2014 dome survey results summary blaze digitalcinemaworks_030814
2014 dome survey results summary blaze digitalcinemaworks_0308142014 dome survey results summary blaze digitalcinemaworks_030814
2014 dome survey results summary blaze digitalcinemaworks_030814
 
Impulse response
Impulse responseImpulse response
Impulse response
 
Latest Work
Latest WorkLatest Work
Latest Work
 
9.26.2011 boston needham
9.26.2011 boston needham9.26.2011 boston needham
9.26.2011 boston needham
 
User Experience Debt: Creating awareness and acting on missed opportunities.
User Experience Debt: Creating awareness and acting on missed opportunities.User Experience Debt: Creating awareness and acting on missed opportunities.
User Experience Debt: Creating awareness and acting on missed opportunities.
 
josef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATEDjosef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATED
 
Luisillo 160617225948
Luisillo 160617225948Luisillo 160617225948
Luisillo 160617225948
 
郭雨青
郭雨青郭雨青
郭雨青
 
Pei centro-educacion-trabajo-desarrollo-humano-udca
Pei centro-educacion-trabajo-desarrollo-humano-udcaPei centro-educacion-trabajo-desarrollo-humano-udca
Pei centro-educacion-trabajo-desarrollo-humano-udca
 
時間はあるけど作業できない
時間はあるけど作業できない時間はあるけど作業できない
時間はあるけど作業できない
 
Guía 2 ayudantía didac. c. s.
Guía 2 ayudantía didac. c. s.Guía 2 ayudantía didac. c. s.
Guía 2 ayudantía didac. c. s.
 
Youth Camp Christian - Copycat
Youth Camp Christian - CopycatYouth Camp Christian - Copycat
Youth Camp Christian - Copycat
 
Automatisasi Siklus Akuntansi
Automatisasi Siklus AkuntansiAutomatisasi Siklus Akuntansi
Automatisasi Siklus Akuntansi
 
Amanda todd
Amanda toddAmanda todd
Amanda todd
 

Similar a High performance web sites

Visual Studio 2008 Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
Visual Studio 2008   Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...Visual Studio 2008   Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
Visual Studio 2008 Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
guest4c5b8c4
 
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdfRaspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
SANTIAGO PABLO ALBERTO
 
Ibm system storage ds storage manager copy services guide sg247822
Ibm system storage ds storage manager copy services guide sg247822Ibm system storage ds storage manager copy services guide sg247822
Ibm system storage ds storage manager copy services guide sg247822
Banking at Ho Chi Minh city
 
How To Do Everything With JavaScript
How To Do Everything With JavaScriptHow To Do Everything With JavaScript
How To Do Everything With JavaScript
Azharul Haque Shohan
 
Reverse engineering for_beginners-en
Reverse engineering for_beginners-enReverse engineering for_beginners-en
Reverse engineering for_beginners-en
Andri Yabu
 

Similar a High performance web sites (20)

The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4The Total Book Developing Solutions With EPiServer 4
The Total Book Developing Solutions With EPiServer 4
 
Advanced Java Script.pdf
Advanced Java Script.pdfAdvanced Java Script.pdf
Advanced Java Script.pdf
 
Java web programming
Java web programmingJava web programming
Java web programming
 
Visual Studio 2008 Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
Visual Studio 2008   Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...Visual Studio 2008   Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
Visual Studio 2008 Beginning Asp Net 3 5 In C# 2008 From Novice To Professi...
 
Black_Hat_Python_Python_Programming_for_Hackers_and_Pentesters.pdf
Black_Hat_Python_Python_Programming_for_Hackers_and_Pentesters.pdfBlack_Hat_Python_Python_Programming_for_Hackers_and_Pentesters.pdf
Black_Hat_Python_Python_Programming_for_Hackers_and_Pentesters.pdf
 
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdfRaspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
Raspberry Pi: Python todo en uno para dummies por John Shovic parte 1.pdf
 
Odoo development
Odoo developmentOdoo development
Odoo development
 
java web_programming
java web_programmingjava web_programming
java web_programming
 
Ibm system storage ds storage manager copy services guide sg247822
Ibm system storage ds storage manager copy services guide sg247822Ibm system storage ds storage manager copy services guide sg247822
Ibm system storage ds storage manager copy services guide sg247822
 
Selenium jupiter j-unit 5 extension for selenium and appium
Selenium jupiter  j-unit 5 extension for selenium and appiumSelenium jupiter  j-unit 5 extension for selenium and appium
Selenium jupiter j-unit 5 extension for selenium and appium
 
[Web开发Css系列].Apress.Pro.Css.Techniques.Nov.2006
[Web开发Css系列].Apress.Pro.Css.Techniques.Nov.2006[Web开发Css系列].Apress.Pro.Css.Techniques.Nov.2006
[Web开发Css系列].Apress.Pro.Css.Techniques.Nov.2006
 
JavaScript 设计模式
JavaScript 设计模式JavaScript 设计模式
JavaScript 设计模式
 
How To Do Everything With JavaScript
How To Do Everything With JavaScriptHow To Do Everything With JavaScript
How To Do Everything With JavaScript
 
Postgresql database administration volume 1
Postgresql database administration volume 1Postgresql database administration volume 1
Postgresql database administration volume 1
 
Redp4469
Redp4469Redp4469
Redp4469
 
Reverse engineering for_beginners-en
Reverse engineering for_beginners-enReverse engineering for_beginners-en
Reverse engineering for_beginners-en
 
Selenium python
Selenium pythonSelenium python
Selenium python
 
Novell login documentation and troubleshooting
Novell login documentation and troubleshootingNovell login documentation and troubleshooting
Novell login documentation and troubleshooting
 
Powershell selflearn
Powershell selflearnPowershell selflearn
Powershell selflearn
 
Powershell selflearn
Powershell selflearnPowershell selflearn
Powershell selflearn
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

High performance web sites

  • 1. High Performance Web Sites Alexandre Porfírio http://alexandreporfirio.com
  • 2. #1 Make Fewer HTTP http://www.alexandreporfirio.com 2
  • 3. #2 Use a Content Delivery Network http://www.alexandreporfirio.com 3
  • 4. #3 Simple HTTP header http://www.alexandreporfirio.com 4
  • 5. #4 Gzip compression http://www.alexandreporfirio.com 5
  • 6. #5 Put Stylesheets at the Top http://www.alexandreporfirio.com 6
  • 7. #6 Put Scripts at the Bottom http://www.alexandreporfirio.com 7
  • 8. #7 Avoid CSS expressions http://www.alexandreporfirio.com 8
  • 9. #8 JavaScript and CSS external http://www.alexandreporfirio.com 9
  • 10. #9 Reduce DNS Lookups http://www.alexandreporfirio.com 10
  • 11. #10 Minify JavaScript http://www.alexandreporfirio.com 11
  • 12. #11 Avoid Redirects http://www.alexandreporfirio.com 12
  • 13. #12 Remove duplicate scripts http://www.alexandreporfirio.com 13
  • 14. #13 Configure ETags http://www.alexandreporfirio.com 14
  • 15. #14 Make Ajax cacheable http://www.alexandreporfirio.com 15
  • 16. Uses redirects  Amazon no  CNN yes ................. Initial page  eBay yes ................ Secondary page  MSN yes ................ Initial page  Wikipedia yes ................ Secondary page  Google no http://www.alexandreporfirio.com 16
  • 18. External scripts minified  Amazon ............................................ no  CNN ............................................ no  eBay ............................................ yes  MSN ............................................ yes  Wikipedia ............................................ no  Google ........................................... yes http://www.alexandreporfirio.com 18
  • 19. External minified | Inline minified  Amazon no ........................... no  CNN no ........................... no  eBay yes ........................... no  MSN yes ........................... no  Wikipedia no ........................... no  Google yes ........................... yes http://www.alexandreporfirio.com 19
  • 20. Duplicate Script Scripts Stylesheets  Amazon 3 .......................... 1  CNN 11 .......................... 2  eBay 7 .......................... 2  MSN 9 .......................... 1  Wikipedia 3 .......................... 1  Google 1 .......................... 1 http://www.alexandreporfirio.com 20
  • 21. Page weight | Response time  Amazon 405k ................. 15.9 sec  CNN 182k ................. 11.5 sec  eBay 275 k ................ 9.6 sec  MSN 221k ................ 9.3 sec  Wikipedia 106k ................ 6.2 sec  Google 18k ................ 1.7 sec http://www.alexandreporfirio.com 21
  • 22. Gzip | JSMin Dojo | Compressor  Amazon 48k ............ 7k .................. 6k  CNN 29k ............. 6k .................. 6k  Wikipedia 13k ..............5k ................... 5k http://www.alexandreporfirio.com 22
  • 23. Thank you! Alexandre Porfírio http://alexandreporfirio.com http://www.alexandreporfirio.com 23