SlideShare a Scribd company logo
1 of 34
The most common optimisation
recommendations
Based on NCC Group Web Performance Health Checks 2014–5
#NCCWP
Ten most common recommendations…
Images are big
65% of page weight
Based on 10,000 pages
from the HTTP Archive
15 April 2015
Wrong format
For example, PNG for a photograph
Photo: Yoel Ben-Avraham www.flickr.com/photos/epublicist/
Metadata
Normally, it’s excess baggage
Photo: Ippei Ogiwara www.flickr.com/photos/iogi/
Not enough compression
Photo: Brian Teutsch www.flickr.com/photos/brianteutsch/
Lossy compression
Photo: marcovdz www.flickr.com/photos/marcovdz/
It’s possible to go too far…
Education
You can’t blame people for uploading big
images if they don’t know it’s a problem
Photo: Kevin Dooley www.flickr.com/photos/pagedooley/
Will new formats make the problem go away?
Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
Will new formats make the problem go away?
WebP: Chrome, Opera, Android Browser
JPEG XR: IE9+
BPG: http://bellard.org/bpg/
Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
Will new formats make the problem go away?
WebP: Chrome, Opera, Android Browser
JPEG XR: IE9+
BPG: http://bellard.org/bpg/
http://people.mozilla.org/~josh/lossy_compressed_image_study_july_2014/
Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
Combine CSS files and JS files
Cuts number of HTTP requests
Photo: Royce Bair www.flickr.com/photos/ironrodart/
Combine CSS files and JS files
But this won’t matter in the world of HTTP/2
Photo: Peter Roome www.flickr.com/photos/roome/
Minify text files
CSS is render blocking…
…so the sooner your CSS loads,
the sooner the page can start to render
Minify text files
It all adds up…
Photo: judy_and_ed www.flickr.com/photos/65924740@N00/
JavaScript blocks DOM construction by default…
Photo: John Haslam www.flickr.com/photos/foxypar4/
Don’t let JavaScript get in the way
Don’t let JavaScript get in the way
JavaScript blocks DOM construction by default…
…so load it as late as possible
(ideally, just before it’s used)
Photo: John Haslam www.flickr.com/photos/foxypar4/
Don’t let JavaScript get in the way
Or use the async attribute where possible:
<script src="myscript.js" async></script>
Don’t let JavaScript get in the way
JavaScript will no longer block DOM construction
Photo: Martin Brigden www.flickr.com/photos/noddymini/
Don’t let JavaScript get in the way
JavaScript will no longer block DOM construction
Neither will it wait for the CSSOM
Photo: Martin Brigden www.flickr.com/photos/noddymini/
Don’t let JavaScript get in the way
…so don’t use async for
JS that interacts with
the DOM/CSSOM
Image: Stefano Brivio www.flickr.com/photos/buggolo/
Remove unused CSS
Photo: steve_w www.flickr.com/photos/steve_way/
Remove unused CSS
Is it really unused?
Remove unused CSS
Photo: Willi Heidelbach www.flickr.com/photos/wilhei/
Remove unused CSS
Won’t subsequent pages be slower if the CSS isn’t
cached?
Remove unused CSS
Won’t subsequent pages be slower if the CSS isn’t
cached?
<link rel="prefetch" href="style.css">
Far-future caching for static objects
Photo: nabeki2009 www.flickr.com/photos/44377224@N08/
Review impact of third parties
Photo: Reuben Stanton www.flickr.com/photos/absent/
Review impact of third parties
Easier said than done
Photo: Reuben Stanton www.flickr.com/photos/absent/
Specify image dimensions
Photo: Michael Rosenstein www.flickr.com/photos/michaelcr/
Cookie-free domain for static objects
Photo: USFWS - Pacific Region www.flickr.com/photos/usfwspacific/
Cookie-free domain for static objects
Reduce upstream traffic
Photo: USFWS - Pacific Region www.flickr.com/photos/usfwspacific/
Compress text files
Gzipping typically reduces transmitted
file size by 60–70%
Photo: frankieleon www.flickr.com/photos/armydre2008/
Thank you!
If you have been affected by any of the issues in this
presentation, visit:
community.nccgroup-webperf.com
#NCCWP
Europe
Manchester - Head Office
Amsterdam
Cheltenham
Copenhagen
Edinburgh
Glasgow
Leatherhead
London
Milton Keynes
Munich
Zurich
North America
Atlanta
Austin
Chicago
New York
San Francisco
Seattle
Sunnyvale
Australia
Sydney

More Related Content

What's hot

B logging for_students (1)
B logging for_students (1)B logging for_students (1)
B logging for_students (1)
lewisj02
 
Let’s Talk About Tech, Baby! How to Talk About Technology Horizontally and V...
Let’s Talk About Tech, Baby!  How to Talk About Technology Horizontally and V...Let’s Talk About Tech, Baby!  How to Talk About Technology Horizontally and V...
Let’s Talk About Tech, Baby! How to Talk About Technology Horizontally and V...
Miminten
 
Georgia Tech hacking Accessibility
Georgia Tech hacking AccessibilityGeorgia Tech hacking Accessibility
Georgia Tech hacking Accessibility
Christian Heilmann
 
7 steps-to-migrate-your-seo-strategy robin-neyt
7 steps-to-migrate-your-seo-strategy robin-neyt7 steps-to-migrate-your-seo-strategy robin-neyt
7 steps-to-migrate-your-seo-strategy robin-neyt
michael_wijs
 
Browsers & Web Technology - an Opera talk
Browsers & Web Technology - an Opera talkBrowsers & Web Technology - an Opera talk
Browsers & Web Technology - an Opera talk
Zi Bin Cheah
 

What's hot (20)

B logging for_students (1)
B logging for_students (1)B logging for_students (1)
B logging for_students (1)
 
Let’s Talk About Tech, Baby! How to Talk About Technology Horizontally and V...
Let’s Talk About Tech, Baby!  How to Talk About Technology Horizontally and V...Let’s Talk About Tech, Baby!  How to Talk About Technology Horizontally and V...
Let’s Talk About Tech, Baby! How to Talk About Technology Horizontally and V...
 
Online Northwest 2009 Accessibility and Online Learning
Online Northwest 2009 Accessibility and Online LearningOnline Northwest 2009 Accessibility and Online Learning
Online Northwest 2009 Accessibility and Online Learning
 
Moving Out: Why and how to take your web stuff to a hosted space
Moving Out: Why and how to take your web stuff to a hosted spaceMoving Out: Why and how to take your web stuff to a hosted space
Moving Out: Why and how to take your web stuff to a hosted space
 
Georgia Tech hacking Accessibility
Georgia Tech hacking AccessibilityGeorgia Tech hacking Accessibility
Georgia Tech hacking Accessibility
 
Creating Book Trailers
Creating Book TrailersCreating Book Trailers
Creating Book Trailers
 
HTML5 intro
HTML5 introHTML5 intro
HTML5 intro
 
Finding harmony in web development
Finding harmony in web developmentFinding harmony in web development
Finding harmony in web development
 
Library Innovation Links
Library Innovation LinksLibrary Innovation Links
Library Innovation Links
 
7 steps-to-migrate-your-seo-strategy robin-neyt
7 steps-to-migrate-your-seo-strategy robin-neyt7 steps-to-migrate-your-seo-strategy robin-neyt
7 steps-to-migrate-your-seo-strategy robin-neyt
 
Truly Responsive Design Means Aligning to Business and User Goals
Truly Responsive Design Means Aligning to Business and User GoalsTruly Responsive Design Means Aligning to Business and User Goals
Truly Responsive Design Means Aligning to Business and User Goals
 
The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015The wheel is spinning but the hamster is almost dead - Smartweb 2015
The wheel is spinning but the hamster is almost dead - Smartweb 2015
 
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPr...
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPr...Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPr...
Preparing For The Flood. How Do You Conduct Load Testing To Ready Your WordPr...
 
Recreating mobile controls in mobile web apps
Recreating mobile controls in mobile web appsRecreating mobile controls in mobile web apps
Recreating mobile controls in mobile web apps
 
Understanding Social Media Day Two - Video
Understanding Social Media Day Two - VideoUnderstanding Social Media Day Two - Video
Understanding Social Media Day Two - Video
 
Browsers & Web Technology - an Opera talk
Browsers & Web Technology - an Opera talkBrowsers & Web Technology - an Opera talk
Browsers & Web Technology - an Opera talk
 
Technology Tips for Administrators
Technology Tips for AdministratorsTechnology Tips for Administrators
Technology Tips for Administrators
 
CU Online Spring Symposium 2009 Multimedia
CU Online Spring Symposium 2009 MultimediaCU Online Spring Symposium 2009 Multimedia
CU Online Spring Symposium 2009 Multimedia
 
Your Design Does Not Matter If It Cannot Be Implemented
Your Design Does Not Matter If It Cannot Be ImplementedYour Design Does Not Matter If It Cannot Be Implemented
Your Design Does Not Matter If It Cannot Be Implemented
 
Yout Design Doesn't Matter If It Can't Be Implemented (David Hobbs)
Yout Design Doesn't Matter If It Can't Be Implemented (David Hobbs)Yout Design Doesn't Matter If It Can't Be Implemented (David Hobbs)
Yout Design Doesn't Matter If It Can't Be Implemented (David Hobbs)
 

Viewers also liked

Designing a slideshare technical presentation
Designing a slideshare technical presentationDesigning a slideshare technical presentation
Designing a slideshare technical presentation
Ta No
 
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
Bekki Tagg
 
Giảm cân nhanh chóng không mang lại kết quả mong muốn
Giảm cân nhanh chóng không mang lại kết quả mong muốnGiảm cân nhanh chóng không mang lại kết quả mong muốn
Giảm cân nhanh chóng không mang lại kết quả mong muốn
yasmin367
 

Viewers also liked (13)

To Microservices and Beyond
To Microservices and BeyondTo Microservices and Beyond
To Microservices and Beyond
 
Deeply Inspired Designs Porfolio
Deeply Inspired Designs PorfolioDeeply Inspired Designs Porfolio
Deeply Inspired Designs Porfolio
 
Senior marketing specialist performance appraisal
Senior marketing specialist performance appraisalSenior marketing specialist performance appraisal
Senior marketing specialist performance appraisal
 
HTS-Corporate Profile
HTS-Corporate ProfileHTS-Corporate Profile
HTS-Corporate Profile
 
Medical administrative specialist performance appraisal
Medical administrative specialist performance appraisalMedical administrative specialist performance appraisal
Medical administrative specialist performance appraisal
 
PHC Postcard Samples
PHC Postcard SamplesPHC Postcard Samples
PHC Postcard Samples
 
Stock Repurchases aka Share Buybacks for US Firms
Stock Repurchases aka Share Buybacks for US FirmsStock Repurchases aka Share Buybacks for US Firms
Stock Repurchases aka Share Buybacks for US Firms
 
Designing a slideshare technical presentation
Designing a slideshare technical presentationDesigning a slideshare technical presentation
Designing a slideshare technical presentation
 
Samir-Senior
Samir-SeniorSamir-Senior
Samir-Senior
 
PRINCE CV
PRINCE CVPRINCE CV
PRINCE CV
 
PP 22 tahun 2016 tentang THR Non PNS dan Lembaga Non Struktural
PP 22 tahun 2016 tentang THR Non PNS dan Lembaga Non StrukturalPP 22 tahun 2016 tentang THR Non PNS dan Lembaga Non Struktural
PP 22 tahun 2016 tentang THR Non PNS dan Lembaga Non Struktural
 
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
Meaningful EMR Use - A Survey of Family Practice Clinics - TAGG_BEKKI_MSC_2015
 
Giảm cân nhanh chóng không mang lại kết quả mong muốn
Giảm cân nhanh chóng không mang lại kết quả mong muốnGiảm cân nhanh chóng không mang lại kết quả mong muốn
Giảm cân nhanh chóng không mang lại kết quả mong muốn
 

Similar to Common web performance recommendations

Will Critchlow - The Future of Link Building
Will Critchlow - The Future of Link BuildingWill Critchlow - The Future of Link Building
Will Critchlow - The Future of Link Building
Distilled
 
Maximising Your SERP Potential - Enhance your listings with Rich Snippets
Maximising Your SERP Potential - Enhance your listings with Rich Snippets Maximising Your SERP Potential - Enhance your listings with Rich Snippets
Maximising Your SERP Potential - Enhance your listings with Rich Snippets
Peter Handley
 

Similar to Common web performance recommendations (20)

Speed is Essential for a Great Web Experience
Speed is Essential for a Great Web ExperienceSpeed is Essential for a Great Web Experience
Speed is Essential for a Great Web Experience
 
Join the Secret Revolution
Join the Secret RevolutionJoin the Secret Revolution
Join the Secret Revolution
 
How To Succeed In Web Design
How To Succeed In Web DesignHow To Succeed In Web Design
How To Succeed In Web Design
 
Innovative Practice with Web 2.0
Innovative Practice with Web 2.0Innovative Practice with Web 2.0
Innovative Practice with Web 2.0
 
The Age of Responsive Design
The Age of Responsive DesignThe Age of Responsive Design
The Age of Responsive Design
 
Estudio34 Presents Will critchlow the future of linkbuilding in LinkLove2013
Estudio34 Presents Will critchlow the future of linkbuilding in LinkLove2013Estudio34 Presents Will critchlow the future of linkbuilding in LinkLove2013
Estudio34 Presents Will critchlow the future of linkbuilding in LinkLove2013
 
Will Critchlow - The Future of Link Building
Will Critchlow - The Future of Link BuildingWill Critchlow - The Future of Link Building
Will Critchlow - The Future of Link Building
 
How Social Software Helps Get Work Done
How Social Software Helps Get Work DoneHow Social Software Helps Get Work Done
How Social Software Helps Get Work Done
 
Connected Collaboration
Connected CollaborationConnected Collaboration
Connected Collaboration
 
Behaviour-Driven Development: escrevendo especificações ágeis
Behaviour-Driven Development: escrevendo especificações ágeisBehaviour-Driven Development: escrevendo especificações ágeis
Behaviour-Driven Development: escrevendo especificações ágeis
 
Maximising Your SERP Potential - Enhance your listings with Rich Snippets
Maximising Your SERP Potential - Enhance your listings with Rich Snippets Maximising Your SERP Potential - Enhance your listings with Rich Snippets
Maximising Your SERP Potential - Enhance your listings with Rich Snippets
 
Just Too Late
Just Too LateJust Too Late
Just Too Late
 
The Importance of Storytelling in Web Design, WordCamp Miami 2013
The Importance of Storytelling in Web Design, WordCamp Miami 2013The Importance of Storytelling in Web Design, WordCamp Miami 2013
The Importance of Storytelling in Web Design, WordCamp Miami 2013
 
Metrics that Matter
Metrics that MatterMetrics that Matter
Metrics that Matter
 
The Secret Revolution (Keene State College)
The Secret Revolution (Keene State College)The Secret Revolution (Keene State College)
The Secret Revolution (Keene State College)
 
The Future of Design is Not Just the Web - Web Visions Workshop 2011
The Future of Design is Not Just the Web - Web Visions Workshop 2011The Future of Design is Not Just the Web - Web Visions Workshop 2011
The Future of Design is Not Just the Web - Web Visions Workshop 2011
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
 
Social Software For Business
Social Software For BusinessSocial Software For Business
Social Software For Business
 
Fix price fix scope fix date-pecha_kuchas-journeeagile2014
Fix price fix scope fix date-pecha_kuchas-journeeagile2014Fix price fix scope fix date-pecha_kuchas-journeeagile2014
Fix price fix scope fix date-pecha_kuchas-journeeagile2014
 
Speed Up Wordpress Wordcamp Pdx 2009
Speed Up Wordpress Wordcamp Pdx 2009Speed Up Wordpress Wordcamp Pdx 2009
Speed Up Wordpress Wordcamp Pdx 2009
 

Recently uploaded

+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@
 

Recently uploaded (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 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
 
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...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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...
 
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
 
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?
 
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
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
+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...
 
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...
 
[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
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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...
 
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)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
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
 

Common web performance recommendations

  • 1. The most common optimisation recommendations Based on NCC Group Web Performance Health Checks 2014–5 #NCCWP
  • 2. Ten most common recommendations…
  • 3. Images are big 65% of page weight Based on 10,000 pages from the HTTP Archive 15 April 2015
  • 4. Wrong format For example, PNG for a photograph Photo: Yoel Ben-Avraham www.flickr.com/photos/epublicist/
  • 5. Metadata Normally, it’s excess baggage Photo: Ippei Ogiwara www.flickr.com/photos/iogi/
  • 6. Not enough compression Photo: Brian Teutsch www.flickr.com/photos/brianteutsch/
  • 7. Lossy compression Photo: marcovdz www.flickr.com/photos/marcovdz/ It’s possible to go too far…
  • 8. Education You can’t blame people for uploading big images if they don’t know it’s a problem Photo: Kevin Dooley www.flickr.com/photos/pagedooley/
  • 9. Will new formats make the problem go away? Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
  • 10. Will new formats make the problem go away? WebP: Chrome, Opera, Android Browser JPEG XR: IE9+ BPG: http://bellard.org/bpg/ Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
  • 11. Will new formats make the problem go away? WebP: Chrome, Opera, Android Browser JPEG XR: IE9+ BPG: http://bellard.org/bpg/ http://people.mozilla.org/~josh/lossy_compressed_image_study_july_2014/ Photo: Stefano Bertolo www.flickr.com/photos/stefanobe/
  • 12. Combine CSS files and JS files Cuts number of HTTP requests Photo: Royce Bair www.flickr.com/photos/ironrodart/
  • 13. Combine CSS files and JS files But this won’t matter in the world of HTTP/2 Photo: Peter Roome www.flickr.com/photos/roome/
  • 14. Minify text files CSS is render blocking… …so the sooner your CSS loads, the sooner the page can start to render
  • 15. Minify text files It all adds up… Photo: judy_and_ed www.flickr.com/photos/65924740@N00/
  • 16. JavaScript blocks DOM construction by default… Photo: John Haslam www.flickr.com/photos/foxypar4/ Don’t let JavaScript get in the way
  • 17. Don’t let JavaScript get in the way JavaScript blocks DOM construction by default… …so load it as late as possible (ideally, just before it’s used) Photo: John Haslam www.flickr.com/photos/foxypar4/
  • 18. Don’t let JavaScript get in the way Or use the async attribute where possible: <script src="myscript.js" async></script>
  • 19. Don’t let JavaScript get in the way JavaScript will no longer block DOM construction Photo: Martin Brigden www.flickr.com/photos/noddymini/
  • 20. Don’t let JavaScript get in the way JavaScript will no longer block DOM construction Neither will it wait for the CSSOM Photo: Martin Brigden www.flickr.com/photos/noddymini/
  • 21. Don’t let JavaScript get in the way …so don’t use async for JS that interacts with the DOM/CSSOM Image: Stefano Brivio www.flickr.com/photos/buggolo/
  • 22. Remove unused CSS Photo: steve_w www.flickr.com/photos/steve_way/
  • 23. Remove unused CSS Is it really unused? Remove unused CSS Photo: Willi Heidelbach www.flickr.com/photos/wilhei/
  • 24. Remove unused CSS Won’t subsequent pages be slower if the CSS isn’t cached?
  • 25. Remove unused CSS Won’t subsequent pages be slower if the CSS isn’t cached? <link rel="prefetch" href="style.css">
  • 26. Far-future caching for static objects Photo: nabeki2009 www.flickr.com/photos/44377224@N08/
  • 27. Review impact of third parties Photo: Reuben Stanton www.flickr.com/photos/absent/
  • 28. Review impact of third parties Easier said than done Photo: Reuben Stanton www.flickr.com/photos/absent/
  • 29. Specify image dimensions Photo: Michael Rosenstein www.flickr.com/photos/michaelcr/
  • 30. Cookie-free domain for static objects Photo: USFWS - Pacific Region www.flickr.com/photos/usfwspacific/
  • 31. Cookie-free domain for static objects Reduce upstream traffic Photo: USFWS - Pacific Region www.flickr.com/photos/usfwspacific/
  • 32. Compress text files Gzipping typically reduces transmitted file size by 60–70% Photo: frankieleon www.flickr.com/photos/armydre2008/
  • 33. Thank you! If you have been affected by any of the issues in this presentation, visit: community.nccgroup-webperf.com #NCCWP
  • 34. Europe Manchester - Head Office Amsterdam Cheltenham Copenhagen Edinburgh Glasgow Leatherhead London Milton Keynes Munich Zurich North America Atlanta Austin Chicago New York San Francisco Seattle Sunnyvale Australia Sydney

Editor's Notes

  1. ?
  2. .