SlideShare a Scribd company logo
SURE 
Internal Training
Giving Users THE Best Experience
In building THE perfect web apps
Your tools are important
Server + client-side =
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
• 
• home page was reduced 100 KB to 70KB, 
traffic went up 10% in the first week and an additional 25% in 
the following three weeks 
• 
•
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
The Rules
Status Codes
Building High Performance Websites - Session-1
The Tools
http://yslow.org/ 
https://developers.google.com/speed/pagespeed/ 
http://closure-compiler.appspot.com/home 
http://yui.github.io/yuicompressor/ 
http://smush.it/ 
http://vswebessentials.com/ 
http://webdevchecklist.com/
JS: 6.52 KB -> 2.43 KB (62.74%) 
CSS: 91.57 KB -> 21.12 KB (76.93%)
Gzip, Deflate, SDCH 
Biggest savings were made on text-based files 
Don’t try to compress PDF, zip, and image files
SURE 
Internal Training
Server instructs the browser 
to cache static content 
Images, scripts, styles, Ajax calls
Building High Performance Websites - Session-1
SURE 
Internal Training
JavaScript can be minified and obfuscated to reduce the file size even further
Building High Performance Websites - Session-1
SURE 
Internal Training
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
Building High Performance Websites - Session-1
SURE 
Internal Training
Building High Performance Websites - Session-1
https://developer.yahoo.com/performance/ 
https://github.com/ligershark/webdevchecklist.com 
https://channel9.msdn.com/Events/TechEd/NorthAm 
erica/2014/DEV-B418#fbid
SURE 
Internal Training 
Thank You

More Related Content

PDF
Speed Index, explained!
PPTX
Web Performance 101
KEY
API Best Practices
PPTX
How fast are we going now?
PDF
Keep the Web Fast
PDF
Content Management Without the Killing
PDF
Optimizing web performance (Fronteers edition)
PDF
Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)
Speed Index, explained!
Web Performance 101
API Best Practices
How fast are we going now?
Keep the Web Fast
Content Management Without the Killing
Optimizing web performance (Fronteers edition)
Does This Theme Make My Website Look Fat? (Wordcamp SLC 2013)

What's hot (20)

PDF
Measuring Web Performance
PDF
WordPress website optimization
PDF
[jqconatx] Adaptive Images for Responsive Web Design
PPTX
WordPress Performance 101
PPT
HTML5 CSS3 The Future of Web Technologies
PPTX
Advanced front end debugging with ms edge and ms tools
PPTX
do u webview?
PPTX
Life in the Fast Lane: Speed, Usability & Search Engine Optimization
PDF
10 tips to improve the usability of Joomla - Joomla World Conference 2014
PDF
Build Better Responsive websites. Hrvoje Jurišić
PPT
Fast and Easy Website Tuneups
PPTX
Web performance
PPTX
Squeeze Maximum Performance From Your Joomla Website
PDF
Web Performance Workshop - Velocity London 2013
PDF
PDF
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
PDF
Battling Google PageSpeed Insights
PPTX
Speed up Your Joomla Site for Ultimate Performance
PDF
Speed Up Wordpress, Wordpress Horsepower
PPTX
Implementing a Responsive Image Strategy
Measuring Web Performance
WordPress website optimization
[jqconatx] Adaptive Images for Responsive Web Design
WordPress Performance 101
HTML5 CSS3 The Future of Web Technologies
Advanced front end debugging with ms edge and ms tools
do u webview?
Life in the Fast Lane: Speed, Usability & Search Engine Optimization
10 tips to improve the usability of Joomla - Joomla World Conference 2014
Build Better Responsive websites. Hrvoje Jurišić
Fast and Easy Website Tuneups
Web performance
Squeeze Maximum Performance From Your Joomla Website
Web Performance Workshop - Velocity London 2013
[QCon 2011] Por uma web mais rápida: técnicas de otimização de Sites
Battling Google PageSpeed Insights
Speed up Your Joomla Site for Ultimate Performance
Speed Up Wordpress, Wordpress Horsepower
Implementing a Responsive Image Strategy
Ad

Viewers also liked (7)

PPTX
Entity framework introduction sesion-1
PDF
Dapper & Dapper.SimpleCRUD
PPTX
PPTX
.NET Database Toolkit
PDF
Object Relational Mapping with Dapper (Micro ORM)
PPT
Software Development Life Cycle (SDLC)
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Entity framework introduction sesion-1
Dapper & Dapper.SimpleCRUD
.NET Database Toolkit
Object Relational Mapping with Dapper (Micro ORM)
Software Development Life Cycle (SDLC)
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Ad

Similar to Building High Performance Websites - Session-1 (20)

PPT
Csdn Drdobbs Tenni Theurer Yahoo
PPTX
Improving web site performance and scalability while saving
PPTX
10 Things You Can Do to Speed Up Your Web App Today
PDF
Web Performance Optimisation
PDF
Guide to WordPress Speed Optimization by WP Villa
PPTX
10 things you can do to speed up your web app today stir trek edition
PDF
Speed Up Wordpress Wordcamp Pdx 2009
PPT
The Need For Speed
PPTX
Performance Tuning Web Apps - The Need For Speed
PDF
10 Web Performance Lessons For the 21st Century
PPTX
Web performance optimization for modern web applications
PDF
High Performance Websites
PPTX
0.6 seconds is the new slow
PDF
Web Client Performance
PPT
High Performance Web Pages - 20 new best practices
PDF
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
PDF
Optimizing for a faster user experience Pt 2: How-to.
PPTX
High-Speed HTML5
PPTX
Word press optimizations
PPT
Client Side Performance @ Xero
Csdn Drdobbs Tenni Theurer Yahoo
Improving web site performance and scalability while saving
10 Things You Can Do to Speed Up Your Web App Today
Web Performance Optimisation
Guide to WordPress Speed Optimization by WP Villa
10 things you can do to speed up your web app today stir trek edition
Speed Up Wordpress Wordcamp Pdx 2009
The Need For Speed
Performance Tuning Web Apps - The Need For Speed
10 Web Performance Lessons For the 21st Century
Web performance optimization for modern web applications
High Performance Websites
0.6 seconds is the new slow
Web Client Performance
High Performance Web Pages - 20 new best practices
The Need for Speed, Optimizing the User Experience pt2 - UXPA Boston 2014 - J...
Optimizing for a faster user experience Pt 2: How-to.
High-Speed HTML5
Word press optimizations
Client Side Performance @ Xero

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Unlocking AI with Model Context Protocol (MCP)
Programs and apps: productivity, graphics, security and other tools
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Reach Out and Touch Someone: Haptics and Empathic Computing
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
Dropbox Q2 2025 Financial Results & Investor Presentation
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
Encapsulation_ Review paper, used for researhc scholars
“AI and Expert System Decision Support & Business Intelligence Systems”
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf

Building High Performance Websites - Session-1

Editor's Notes

  • #7: Defining Performance. Performance Toolbox HTTP Compression Caching Bundling and Minification HTML Optimization Tips Image Optimization Tips Content Delivery Network
  • #8: Steve Souders, the head performance engineer at Google, coined the term the Performance Golden Rule in his book High Performance Web Sites (O’Reilly Media, 2007). when the Google Maps home page was reduced in size from 100 KB to 70-80 KB, traffic went up 10% in the first week and an additional 25% in the following three weeks In 2009, a Google blog1 claimed that more than 99 human years are wasted every day because of uncompressed content. Such content wastes bandwidth and increases the amount of time users spend waiting for a web page to load.
  • #10: Steve Souders, the head performance engineer at Google, coined the term the Performance Golden Rule in his book High Performance Web Sites (O’Reilly Media, 2007). when the Google Maps home page was reduced in size from 100 KB to 70-80 KB, traffic went up 10% in the first week and an additional 25% in the following three weeks In 2009, a Google blog1 claimed that more than 99 human years are wasted every day because of uncompressed content. Such content wastes bandwidth and increases the amount of time users spend waiting for a web page to load.
  • #11: Profile your website, analyzing it so you can understand where the performance issues are and why they are there. (tools) Identify appropriate techniques, learning what best suits your situation and how you can enhance your website’s speed. (the results from profiling, you can identify areas that need improvement) Bottlenecks Implement changes, having determined which techniques best suit your website. Monitor your site, tracking for any signs of decreased speed. (Only by monitoring your site will you be able to maintain this optimized level of performance.)
  • #12: you can see that the HTML document is a very small percentage of the overall download. As a back-end developer, you probably think the first place to optimize your website is deep in the server-side code. This may include optimizing code or indexing the database. Surprisingly, users spend most of their time waiting for the other components to download! Golder Rule: Using this rule, you can deduce that if 80% of the download time is spent on the front end, and you cut that in half, you reduce response times by 40%. If you cut the back-end performance in half, you gain only a 10% increase in response times.
  • #14: HTTP requests and responses contain data that is readable to the human eye Response Status Code is 200, which means it was successful. The Expires field tells the browser how long it’s allowed to keep the component. Content-Type is text/html. Content-Encoding field tells the browser that the server is sending data back that’s encoded with Gzip. The Vary field instructs the proxies to cache two versions of the resource: one compressed and one uncompressed. Status Codes 200–2xx Success 300–3xx Redirection 400–4xx Client Error 500–5xx Server Error
  • #15: In 2007, Steve Souders, at the time Chief Performance Yahoo! at Yahoo!, created a set of 14 rules for faster front-end performance. Book High Performance Web Sites, and every single one is widely accepted as best practice in web performance today. As the web has evolved, the number of rules has increased https://developer.yahoo.com/performance/
  • #17: YSlow is a great add-on for many browsers and it offers suggestions for improving a web page’s performance. The tool runs against a set of 23 rules that affect web page performance. Google PageSpeed It’s very similar to YSlow and was built using the same performance rules set out by the Yahoo! performance team. PageSpeed tool provides a very simple interface that suggests only the improvements you need to make. Unlike YSlow, it doesn’t give you a breakdown of the components or the empty versus primed cache view. Each tool provides its own rule set and logic to determine the score profiling tool running in the background. Don’t forget to turn it off when you aren’t using it!
  • #18: Request Accept-Encoding Header Response Content-Encoding Header Prefer to use Vary Header to instruct proxies to cache different versions for different content encoding header values
  • #20: Show IIS Compression IIS CPU usage Throttling When CPU usage gets beyond a certain level, IIS will automatically stop compressing pages. When usage drops to an acceptable level, the CPU will start compressing pages again. Beautiful IIS Once IIS has compressed static content, it caches it, which increases compression performance. Dynamic content typically is associated with file types that change often and can be produced by server side code. Examples include JSON, XML, and ASPX. Dynamic content is processed the same way as static content; the only difference is that once it’s been processed, it isn’t cached to disk. Configuration can be from IIS directly or from web.config <system.webserver> minFileSizeForComp in IIS 7.5 is 2,700 bytes default You can specify the CPU percentage at which dynamic compression will be disabled by adding and setting the optional DynamicCompressionDisableCpuUsage Applying compression to your application with IIS and Web.config is the simplest and most effective way of optimizing your website but you can do it from application layer
  • #21: Empty cache vs. primed cache The first time you visit a website, you won’t have a cache of that site. But as you continue to browse the website, the browser cleverly stores the components you download in this temporary folder cache. The next time you visit the same website, you’ll have a primed cache that contains the website’s cached items. which speeds up your download time.
  • #22: Expires header used to notify the web client that it can use the current copy of a component until the specified expiration date. It uses an exact date and time to specify an expiration. Cache-Control is an alternative to the Expires header, and it works with time slightly differently. uses a max-age in seconds to determine the expiration date from the time it was requested. The Vary field instructs the proxies to cache two versions of the resource: one compressed and one uncompressed. Caching considerations File versioning
  • #23: IIS will automatically determine when to use the Expires header or when to use the Cache-Control header. We can easily set the Expires headers in either our IIS web server or within the Web.config file of our application. If nothing has changed, the server will respond with a 304 HTTP status code notifying the browser that it has not been modified and that it can use the version stored in the browser’s cache. In IIS you can choose to apply the Expires headers to individual folders (CSS files, JavaScript files, images) Caching in Web.Config
  • #26: IIS will automatically determine when to use the Expires header or when to use the Cache-Control header. We can easily set the Expires headers in either our IIS web server or within the Web.config file of our application. If nothing has changed, the server will respond with a 304 HTTP status code notifying the browser that it has not been modified and that it can use the version stored in the browser’s cache. In IIS you can choose to apply the Expires headers to individual folders (CSS files, JavaScript files, images) Caching in Web.Config
  • #27: The position of CSS in an HTML document has less to do with download times, and more to do with how the browser reacts and renders the page. It’s all about perceived speed for the user!
  • #28: JavaScript on top blocks the browser’s ability to download components in parallel. Browsers run JavaScript in a single thread, so if a script is executing, the browser might not be able to start other downloads.
  • #29: Crushing PNGs Stripping JPEG Metadata Converting GIF to PNG Optimizing GIF Animations
  • #31: Before adding any page optimizations: http://before.azurewebsites.net/ After adding page optimizations in this book: http://after.azurewebsites.net/