SlideShare une entreprise Scribd logo
1  sur  10
Mark Isham
CEO, Zoompf
Optimizing your Web Performance with
mod_pagespeed
What Is Mod_Pagespeed?
“mod_pagespeed is an open-source
Apache module created by Google to help
Make the Web Faster by rewriting web
pages to reduce latency and bandwidth”
http://www.modpagespeed.com/
What it Does
“Performance JIT” to automate 40+ performance best
practices:
Complexity
Content Compression
Spriting
Defer Javascript
Lazy Loading
Image Optimization
Caching Combine CSS
Combine JS
Inline CSS
Minifiy Text
CSS to Head
Conditional WebP
Full List
“Filters”
• “Core Set” of “safe” optimizations
– Combine CSS, Compress Images, Minify, etc.
– Turns on mod_deflate (Gzip compression)
• Optional filters for potentially disruptive improvements:
– Move CSS to head
– Convert PNG to JPG
– Remove HTML comments
– Sprite Images
• https://developers.google.com/speed/pagespeed/modul
e/config_filters
How it Works
• Great (long) youtube video
– Skip to ~22 minute mark for Apache filters
• Apache input & output filters to rewrite content
• Based on pagespeed libraries (not Apache specific)
• CPU intensive operations offloaded to background
– Optimize on first use
– Examples: image compression, resize images
Example – combine_css filter
• Before
• After
Advanced Features
• Per-request testing
http://yoursite.com/file.html?ModPagespeed=on&Mod
PagespeedFilters=rewrite_css
• A/B testing w/ Google Analytics
Use different filters for different % of traffic, different
event IDs
• Mapping sharded domains to mod_pagespeed
• Mod_Pagespeed project:
http://code.google.com/p/modpagespeed/
• Overview on Youtube:
https://www.youtube.com/watch?v=6uCAd
QSHhmA#t=43
• Filter list:
https://developers.google.com/speed/pages
peed/module/config_filters
• Zoompf Blog post:
http://zoompf.com/blog/2014/01/step-by-
step-guide-to-optimizing-your-apache-site-
with-mod_pagespeed
• Zoompf Free Tool: http://zoompf.com/free
Mark Isham
mark@zoompf.com
Twitter: @Zoompf
plus.google.com/+Zoompf
CONTACT INFO:
http://zoompf.com

Contenu connexe

Dernier

Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
ChloeMeadows1
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
lolsDocherty
 

Dernier (17)

Statistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdfStatistical Analysis of DNS Latencies.pdf
Statistical Analysis of DNS Latencies.pdf
 
Premier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdfPremier Mobile App Development Agency in USA.pdf
Premier Mobile App Development Agency in USA.pdf
 
Free scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirtsFree scottie t shirts Free scottie t shirts
Free scottie t shirts Free scottie t shirts
 
Bug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's GuideBug Bounty Blueprint : A Beginner's Guide
Bug Bounty Blueprint : A Beginner's Guide
 
Reggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirtsReggie miller choke t shirts
Reggie miller choke t shirtsReggie miller choke t shirts
 
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
TORTOGEL TELAH MENJADI SALAH SATU PLATFORM PERMAINAN PALING FAVORIT.
 
AI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model GeneratorAI Generated 3D Models | AI 3D Model Generator
AI Generated 3D Models | AI 3D Model Generator
 
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital PresenceCyber Security Services Unveiled: Strategies to Secure Your Digital Presence
Cyber Security Services Unveiled: Strategies to Secure Your Digital Presence
 
Production 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptxProduction 2024 sunderland culture final - Copy.pptx
Production 2024 sunderland culture final - Copy.pptx
 
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkkaudience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
audience research (emma) 1.pptxkkkkkkkkkkkkkkkkk
 
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
Registry Data Accuracy Improvements, presented by Chimi Dorji at SANOG 41 / I...
 
Development Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of appsDevelopment Lifecycle.pptx for the secure development of apps
Development Lifecycle.pptx for the secure development of apps
 
I’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 ShirtI’ll See Y’All Motherfuckers In Game 7 Shirt
I’ll See Y’All Motherfuckers In Game 7 Shirt
 
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWebiThome_CYBERSEC2024_Drive_Into_the_DarkWeb
iThome_CYBERSEC2024_Drive_Into_the_DarkWeb
 
The Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdfThe Rise of Subscription-Based Digital Services.pdf
The Rise of Subscription-Based Digital Services.pdf
 
Thank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirtsThank You Luv I’ll Never Walk Alone Again T shirts
Thank You Luv I’ll Never Walk Alone Again T shirts
 
GOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdfGOOGLE Io 2024 At takes center stage.pdf
GOOGLE Io 2024 At takes center stage.pdf
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Apache mod_pagespeed Overview

  • 1. Mark Isham CEO, Zoompf Optimizing your Web Performance with mod_pagespeed
  • 2. What Is Mod_Pagespeed? “mod_pagespeed is an open-source Apache module created by Google to help Make the Web Faster by rewriting web pages to reduce latency and bandwidth” http://www.modpagespeed.com/
  • 3. What it Does “Performance JIT” to automate 40+ performance best practices: Complexity Content Compression Spriting Defer Javascript Lazy Loading Image Optimization Caching Combine CSS Combine JS Inline CSS Minifiy Text CSS to Head Conditional WebP Full List
  • 4. “Filters” • “Core Set” of “safe” optimizations – Combine CSS, Compress Images, Minify, etc. – Turns on mod_deflate (Gzip compression) • Optional filters for potentially disruptive improvements: – Move CSS to head – Convert PNG to JPG – Remove HTML comments – Sprite Images • https://developers.google.com/speed/pagespeed/modul e/config_filters
  • 5. How it Works • Great (long) youtube video – Skip to ~22 minute mark for Apache filters • Apache input & output filters to rewrite content • Based on pagespeed libraries (not Apache specific) • CPU intensive operations offloaded to background – Optimize on first use – Examples: image compression, resize images
  • 6. Example – combine_css filter • Before • After
  • 7.
  • 8. Advanced Features • Per-request testing http://yoursite.com/file.html?ModPagespeed=on&Mod PagespeedFilters=rewrite_css • A/B testing w/ Google Analytics Use different filters for different % of traffic, different event IDs • Mapping sharded domains to mod_pagespeed
  • 9. • Mod_Pagespeed project: http://code.google.com/p/modpagespeed/ • Overview on Youtube: https://www.youtube.com/watch?v=6uCAd QSHhmA#t=43 • Filter list: https://developers.google.com/speed/pages peed/module/config_filters • Zoompf Blog post: http://zoompf.com/blog/2014/01/step-by- step-guide-to-optimizing-your-apache-site- with-mod_pagespeed • Zoompf Free Tool: http://zoompf.com/free

Notes de l'éditeur

  1. Apache 2.2 and beyond. Beta since 2012, 1.0 version in 2013?
  2. MD5 hash of combined file names for caching, e.g. if content changes a new hash is generated.