SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Andere mochten auch

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_030814IMERSA
 
9.26.2011 boston needham
9.26.2011 boston needham9.26.2011 boston needham
9.26.2011 boston needhamjjneedham
 
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.Andrew Wright
 
josef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATEDjosef_klaasen CV 2015 UPDATED
josef_klaasen CV 2015 UPDATEDJosef Joe Klaasen
 
Luisillo 160617225948
Luisillo 160617225948Luisillo 160617225948
Luisillo 160617225948LUIGISAMUEL
 
時間はあるけど作業できない
時間はあるけど作業できない時間はあるけど作業できない
時間はあるけど作業できないさい ぞう
 
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.Basty M
 
Youth Camp Christian - Copycat
Youth Camp Christian - CopycatYouth Camp Christian - Copycat
Youth Camp Christian - CopycatKen Sapp
 

Andere mochten auch (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
 

Ähnlich wie High performance web sites

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 4Martin Edenström MKSE.com
 
Advanced Java Script.pdf
Advanced Java Script.pdfAdvanced Java Script.pdf
Advanced Java Script.pdfSophia Diaz
 
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
 
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.pdfBoucif David
 
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.pdfSANTIAGO PABLO ALBERTO
 
java web_programming
java web_programmingjava web_programming
java web_programmingbachector
 
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 sg247822Banking at Ho Chi Minh city
 
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 appiumViliamtrobich
 
[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.2006bmchaoshi
 
JavaScript 设计模式
JavaScript 设计模式JavaScript 设计模式
JavaScript 设计模式guest97dcac3
 
How To Do Everything With JavaScript
How To Do Everything With JavaScriptHow To Do Everything With JavaScript
How To Do Everything With JavaScriptAzharul Haque Shohan
 
Postgresql database administration volume 1
Postgresql database administration volume 1Postgresql database administration volume 1
Postgresql database administration volume 1Federico Campoli
 
Reverse engineering for_beginners-en
Reverse engineering for_beginners-enReverse engineering for_beginners-en
Reverse engineering for_beginners-enAndri Yabu
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
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 educationjfdjdjcjdnsjd
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 

Kürzlich hochgeladen (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 

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