SlideShare a Scribd company logo
1 of 9
The basics of web performance




      By Prasoon Agrawal
      prasoongkp@gmail.com
My areas of interest
   Performance Engineering

   Cloud Computing and Architecture

   User Activity & Behavioral Analysis

   Mobile Applications

   Web Applications
Y Performance Is important




 Better   User Experience

 Better   User Engagement

 Better   Conversion
Types of Optimization


 Server   Side Processing Optimization

 Page   Load Optimization

 Post   Page Load Optimization

 Make    Your Browsing Experience faster
Server Side processing Optimization



In-memory   Data Objects Caching

HTTP   Runtime Caching

HTTP   Server Configuration Tweaking

Reducing   Server Side Processing

Reducing   First Byte Time
Page Load Optimization

   Make Fewer HTTP Requests
   Use a Content Delivery Network
   Use browser caching by headers(Expires, Cache-Control & Last-Modified)
   Enable Proxy caching by header(Cache control:public )
   Minify CSS, HTML & JavaScript
   Enable Gzip for HTML, CSS & JavaScript above 150bytes
   Defer Loading of JavaScript which are not used in the beginning of page load
   Serve static content from a Cookie free Domain
   Keep Cookies and Request headers as small as possible ensure that HTTP
    request can fit into a single packet(i.e. 1500 bytes)
   Minimize DNS lookups (reduce the no of hostnames) Use URL paths instead
    of hostnames wherever possible
   Use Minimum or No Redirection
   Avoid Bad Request (404 / 410) errors
   Combine Images Using CSS sprites
   Balance parallelizable resources across hostnames (upto 5-6 domains)
Post Page Load Optimization

   Reduce the DOM Size
   Use least no of plugins
   Render Dynamic content on the fly when needed
   Do not attach too many events to the on load
   Do least possible calculations on client side
   Make CSS rules as specific as possible using Class & ID selector
   Allow elements to inherit from parent elements
   Remove extra qualifiers(tag or class over Id & tag over class)
   Avoid CSS expressions(only for IE < 7)
   Put CSS in the document head(use <link> in <head>)
   Specify Image dimensions to avoid reflows and re-render page
   Specify dimensions that match those of the images themselves
   Specify a correct character encoding and content type in header
Make Your Browsing Experience faster


                 Using Public DNS
Reduces the no of DNS lookup and Latency
Lesser Redirects and Load balanced cached results
Save from Denial-of-Service(DoS) attack
Save from Spoofing DNS servers


GoogleDns (8.8.8.8 / 8.8.4.4)
DnsAdvantage(156.154.70.1 / 156.154.71.1)
OpenDns(208.67.222.222 / 208.67.220.220)
NortonDns(198.153.192.1 / 198.153.194.1)
Thank You



                    Questions ?


Sources: http://developer.yahoo.com
        https://developers.google.com

More Related Content

What's hot

Php & web server performace
Php & web server performacePhp & web server performace
Php & web server performace
Tuyển Đoàn
 
Improving web site performance and scalability while saving
Improving web site performance and scalability while savingImproving web site performance and scalability while saving
Improving web site performance and scalability while saving
mdc11
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
Nigel Price
 

What's hot (18)

Configuring Apache Servers for Better Web Perormance
Configuring Apache Servers for Better Web PerormanceConfiguring Apache Servers for Better Web Perormance
Configuring Apache Servers for Better Web Perormance
 
AEM WITH MONGODB
AEM WITH MONGODBAEM WITH MONGODB
AEM WITH MONGODB
 
WordCamp RVA
WordCamp RVAWordCamp RVA
WordCamp RVA
 
Php & web server performace
Php & web server performacePhp & web server performace
Php & web server performace
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
 
Best practices para publicar un WebSite con SharePoint Server 2010
Best practices para publicar un WebSite con SharePoint Server 2010Best practices para publicar un WebSite con SharePoint Server 2010
Best practices para publicar un WebSite con SharePoint Server 2010
 
Rest services caching
Rest services cachingRest services caching
Rest services caching
 
Caching 101 - WordCamp OC
Caching 101 - WordCamp OCCaching 101 - WordCamp OC
Caching 101 - WordCamp OC
 
Drupal 7 performance and optimization
Drupal 7 performance and optimizationDrupal 7 performance and optimization
Drupal 7 performance and optimization
 
Skalowalna architektura na przykładzie soccerway.com
Skalowalna architektura na przykładzie soccerway.comSkalowalna architektura na przykładzie soccerway.com
Skalowalna architektura na przykładzie soccerway.com
 
Caching Strategies
Caching StrategiesCaching Strategies
Caching Strategies
 
Optimising for Performance
Optimising for PerformanceOptimising for Performance
Optimising for Performance
 
Effectively Scale and Operate AEM with MongoDB by Norberto Leite
Effectively Scale and Operate AEM with MongoDB by Norberto LeiteEffectively Scale and Operate AEM with MongoDB by Norberto Leite
Effectively Scale and Operate AEM with MongoDB by Norberto Leite
 
Improving web site performance and scalability while saving
Improving web site performance and scalability while savingImproving web site performance and scalability while saving
Improving web site performance and scalability while saving
 
Architectures For Scaling Ajax
Architectures For Scaling AjaxArchitectures For Scaling Ajax
Architectures For Scaling Ajax
 
Microsoft Azure Media Services
Microsoft Azure Media ServicesMicrosoft Azure Media Services
Microsoft Azure Media Services
 
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s  | WordPress TrivandrumWordPress Hosting Best Practices - Do's and Don't s  | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
 

Similar to Web performance Talk

W-JAX Performance Workshop - Web and AJAX
W-JAX Performance Workshop - Web and AJAXW-JAX Performance Workshop - Web and AJAX
W-JAX Performance Workshop - Web and AJAX
Alois Reitbauer
 
Optimizing Client-Side Performance
Optimizing Client-Side PerformanceOptimizing Client-Side Performance
Optimizing Client-Side Performance
andrew4web
 
Asp.net performance secrets
Asp.net performance secretsAsp.net performance secrets
Asp.net performance secrets
Mahmoud Ghoz
 
High Performance Web Pages - 20 new best practices
High Performance Web Pages - 20 new best practicesHigh Performance Web Pages - 20 new best practices
High Performance Web Pages - 20 new best practices
Stoyan Stefanov
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should Know
Spiffy
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2
Information Technology
 

Similar to Web performance Talk (20)

Performance engineering
Performance engineeringPerformance engineering
Performance engineering
 
High Performance Websites
High Performance WebsitesHigh Performance Websites
High Performance Websites
 
Building high scale, highly available websites in SharePoint 2010
Building high scale, highly available websites in SharePoint 2010Building high scale, highly available websites in SharePoint 2010
Building high scale, highly available websites in SharePoint 2010
 
Client Side Performance @ Xero
Client Side Performance @ XeroClient Side Performance @ Xero
Client Side Performance @ Xero
 
Jax Ajax Architecture
Jax Ajax  ArchitectureJax Ajax  Architecture
Jax Ajax Architecture
 
Building the next generation of browser apps today
Building the next generation of browser apps todayBuilding the next generation of browser apps today
Building the next generation of browser apps today
 
Oracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance TuningOracle UCM: Web Site Performance Tuning
Oracle UCM: Web Site Performance Tuning
 
W-JAX Performance Workshop - Web and AJAX
W-JAX Performance Workshop - Web and AJAXW-JAX Performance Workshop - Web and AJAX
W-JAX Performance Workshop - Web and AJAX
 
Frontend performance
Frontend performanceFrontend performance
Frontend performance
 
Optimizing Client-Side Performance
Optimizing Client-Side PerformanceOptimizing Client-Side Performance
Optimizing Client-Side Performance
 
High Performance Ajax Applications
High Performance Ajax ApplicationsHigh Performance Ajax Applications
High Performance Ajax Applications
 
Web Performance & Scalability Tools
Web Performance & Scalability ToolsWeb Performance & Scalability Tools
Web Performance & Scalability Tools
 
Asp.net performance secrets
Asp.net performance secretsAsp.net performance secrets
Asp.net performance secrets
 
SharePoint 2010 Boost your farm performance!
SharePoint 2010 Boost your farm performance!SharePoint 2010 Boost your farm performance!
SharePoint 2010 Boost your farm performance!
 
High Performance Web Pages - 20 new best practices
High Performance Web Pages - 20 new best practicesHigh Performance Web Pages - 20 new best practices
High Performance Web Pages - 20 new best practices
 
How to Boost WordPress Site Speed in 10 Steps
How to Boost WordPress Site Speed in 10 StepsHow to Boost WordPress Site Speed in 10 Steps
How to Boost WordPress Site Speed in 10 Steps
 
Web performance - Analysing Heart.co.uk
Web performance - Analysing Heart.co.ukWeb performance - Analysing Heart.co.uk
Web performance - Analysing Heart.co.uk
 
Guide Hosting Dictionary
Guide Hosting DictionaryGuide Hosting Dictionary
Guide Hosting Dictionary
 
CTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should KnowCTU June 2011 - Things that Every ASP.NET Developer Should Know
CTU June 2011 - Things that Every ASP.NET Developer Should Know
 
MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2MOSS 2007 Deployment Fundamentals -Part2
MOSS 2007 Deployment Fundamentals -Part2
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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...
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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
 
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
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
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
 
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?
 

Web performance Talk

  • 1. The basics of web performance By Prasoon Agrawal prasoongkp@gmail.com
  • 2. My areas of interest  Performance Engineering  Cloud Computing and Architecture  User Activity & Behavioral Analysis  Mobile Applications  Web Applications
  • 3. Y Performance Is important  Better User Experience  Better User Engagement  Better Conversion
  • 4. Types of Optimization  Server Side Processing Optimization  Page Load Optimization  Post Page Load Optimization  Make Your Browsing Experience faster
  • 5. Server Side processing Optimization In-memory Data Objects Caching HTTP Runtime Caching HTTP Server Configuration Tweaking Reducing Server Side Processing Reducing First Byte Time
  • 6. Page Load Optimization  Make Fewer HTTP Requests  Use a Content Delivery Network  Use browser caching by headers(Expires, Cache-Control & Last-Modified)  Enable Proxy caching by header(Cache control:public )  Minify CSS, HTML & JavaScript  Enable Gzip for HTML, CSS & JavaScript above 150bytes  Defer Loading of JavaScript which are not used in the beginning of page load  Serve static content from a Cookie free Domain  Keep Cookies and Request headers as small as possible ensure that HTTP request can fit into a single packet(i.e. 1500 bytes)  Minimize DNS lookups (reduce the no of hostnames) Use URL paths instead of hostnames wherever possible  Use Minimum or No Redirection  Avoid Bad Request (404 / 410) errors  Combine Images Using CSS sprites  Balance parallelizable resources across hostnames (upto 5-6 domains)
  • 7. Post Page Load Optimization  Reduce the DOM Size  Use least no of plugins  Render Dynamic content on the fly when needed  Do not attach too many events to the on load  Do least possible calculations on client side  Make CSS rules as specific as possible using Class & ID selector  Allow elements to inherit from parent elements  Remove extra qualifiers(tag or class over Id & tag over class)  Avoid CSS expressions(only for IE < 7)  Put CSS in the document head(use <link> in <head>)  Specify Image dimensions to avoid reflows and re-render page  Specify dimensions that match those of the images themselves  Specify a correct character encoding and content type in header
  • 8. Make Your Browsing Experience faster Using Public DNS Reduces the no of DNS lookup and Latency Lesser Redirects and Load balanced cached results Save from Denial-of-Service(DoS) attack Save from Spoofing DNS servers GoogleDns (8.8.8.8 / 8.8.4.4) DnsAdvantage(156.154.70.1 / 156.154.71.1) OpenDns(208.67.222.222 / 208.67.220.220) NortonDns(198.153.192.1 / 198.153.194.1)
  • 9. Thank You Questions ? Sources: http://developer.yahoo.com https://developers.google.com