SlideShare a Scribd company logo
Optimize PerformanceOptimize Performance
(and not die trying)(and not die trying)
Diego Cardozo
Sr. Web Performance Engineer @ NetSuite
MotivationMotivation
3 pillars in user experience
Design
Usability
Performance
80% - 90% load time comes from the front end
Additionally...
Better user conversion
Affects Google search result rankings
ChallengeChallenge
Initial goal for this talk: teach everything required to
build fast sites
12 hour talk?
Very complex (a.k.a boring)
This group is too diverse for a technical talk
New goal
Drill into the world of web performance
Go over the main optimization techniques
If I was successful...
Continue learning by enrolling in Google's web
performance course (link at the end)
Agenda / FocusAgenda / Focus
1. Measure
Have a clear goal
Measure early
Measure often
2. Optimize
Reduce amount of bytes
Reduce critical resources
Shorten the Critical Rendering Path (CRP)
1. Measure1. Measure
MeasureMeasure
Have a clear goal
Twitter - Time to first tweet
NetSuite - Performance budget
Google - RAIL
100ms 16ms 50ms 1s
MeasureMeasure
Measure early
WebPageTest
Page Speed Insights
sitespeed.io
MeasureMeasure
Measure often
Know how performance evolves
Automation tools
Dynatrace / GTMetrix
More in my talk from Testing Meetup
2. Optimize2. Optimize
OptimizeOptimize
Theory
The CRP is the sequence of steps followed by the
browser in order to render a page
1. Parse the HTML and build the DOM
2. Parse the CSS and build the CSSOM
3. Build the Render Tree
4. Position elements on the screen (Layout)
5. Paint the screen
OptimizeOptimize
Theory
The CRP has 3 main components which can be optimized
1. Total amount of bytes to be downloaded
2. Amount of critical resources (HTML, CSS y blocking JS)
3. Amount of roundtrips needed in order to gather
critical resources
OptimizeOptimize
Example
Total KB: 11
Critical resources: 3
CRP length: 2
OptimizeOptimize
Reduce total amount of bytes
Minify, compress and cache
HTML
CSS
JavaScript
Remove unused styles
Compress images
Example: compressor.io
Compress and unify fonts
unused-css.com
OptimizeOptimize
Reduce amount of critical resources
Concatenate JS and CSS files
Use media queries on <link> tags to unblock
rendering
Write CSS directly on HTML (inline)
Leaving everything inline can be harmful
Write JS directly on HTML (inline)
Still blocks rendering when executed if not marked
as async
OptimizeOptimize
Shorten the Critical Rendering Path (CRP)
Delay JavaScript execution
Add an async attribute to <script> tags so that they
don't block rendering
Code optimizations
LinksLinks
Test performance and not die trying
Google/Udacity course on performance optimization
My blog post which summarizes the above course
Article on removing unused CSS
Questions?Questions?
dcardozo@netsuite.com
slides.com/diegocard/optimize-performance

More Related Content

PDF
How to test performance and not die trying
PPT
Test Automation
PDF
Webinar: Estrategias para optimizar los costos de testing
PPTX
ASP.NET Best Practices - Useful Tips from the Trenches
PDF
Anand Ramdeo - Automation Frameworks - EuroSTAR 2012
PPTX
Automation testing
PDF
Improving Your Government Proposals' Pwin Part 1: Assess Your Proposal
PDF
Automated Testing for Dynamics CRM 1 - CRMUG 2014
How to test performance and not die trying
Test Automation
Webinar: Estrategias para optimizar los costos de testing
ASP.NET Best Practices - Useful Tips from the Trenches
Anand Ramdeo - Automation Frameworks - EuroSTAR 2012
Automation testing
Improving Your Government Proposals' Pwin Part 1: Assess Your Proposal
Automated Testing for Dynamics CRM 1 - CRMUG 2014

Viewers also liked (14)

PDF
Poster - Sylvia Cheung
PPTX
facultad de ciencias de la salud
DOCX
Super Saturday Flyer (1)
PPTX
Find Time For Fitness
PDF
Maker Party2014
PDF
Android Development
PDF
POA_16_006
PPTX
Aula a importância da polinização por insetos
PPT
Multisim training in mohali
PDF
Machine Learning and Cognitive Fingerprinting - SparkCognition
DOCX
IMPACTO Y EVOLUCIÓN DE LA PIRATERÍA INFORMÁTICA EN MÉXICO EN LOS ÚLTIMOS 10 AÑOS
PPTX
Client Case Study - Sandwell Council
PDF
OxfordLearn Training guide
PPTX
BIM - What the Client wants from Manufacturers #BIM4M2help
Poster - Sylvia Cheung
facultad de ciencias de la salud
Super Saturday Flyer (1)
Find Time For Fitness
Maker Party2014
Android Development
POA_16_006
Aula a importância da polinização por insetos
Multisim training in mohali
Machine Learning and Cognitive Fingerprinting - SparkCognition
IMPACTO Y EVOLUCIÓN DE LA PIRATERÍA INFORMÁTICA EN MÉXICO EN LOS ÚLTIMOS 10 AÑOS
Client Case Study - Sandwell Council
OxfordLearn Training guide
BIM - What the Client wants from Manufacturers #BIM4M2help
Ad

Similar to Optimize performance and not die trying (20)

PDF
Navigating the critical rendering path - Jamie Alberico - VirtuaCon
PDF
Optimizing web performance (Fronteers edition)
PDF
Keep the Web Fast
PPTX
Vlad zelinschi optimizing the critical rendering path
PDF
Measuring Web Performance
PPTX
10 things you can do to speed up your web app today stir trek edition
PPTX
Modelling Web Performance Optimization - FFSUx
PDF
HK CodeConf 2015 - Your WebPerf Sucks
PPTX
web performance optimization using style
PDF
The latest in site speed: advanced #webperf 2018
PDF
Front-End Performance Checklist 2020
ODP
Cvcc performance tuning
PDF
Антон Серпутько “Testing and optimization of client-side performance”
PDF
Web Performance Optimization (WPO)
PDF
How and Why ($) to improve web performance.pdf
PPTX
How to Optimize Website Performance in 2025 Tips and Tools
PPTX
How to Optimize Website Performance in 2025 Tips and Tools
PPTX
Website Performance
PDF
20 tips for website performance
PPTX
Rachel Costello — The Landscape of Site Speed and Web Vitals
Navigating the critical rendering path - Jamie Alberico - VirtuaCon
Optimizing web performance (Fronteers edition)
Keep the Web Fast
Vlad zelinschi optimizing the critical rendering path
Measuring Web Performance
10 things you can do to speed up your web app today stir trek edition
Modelling Web Performance Optimization - FFSUx
HK CodeConf 2015 - Your WebPerf Sucks
web performance optimization using style
The latest in site speed: advanced #webperf 2018
Front-End Performance Checklist 2020
Cvcc performance tuning
Антон Серпутько “Testing and optimization of client-side performance”
Web Performance Optimization (WPO)
How and Why ($) to improve web performance.pdf
How to Optimize Website Performance in 2025 Tips and Tools
How to Optimize Website Performance in 2025 Tips and Tools
Website Performance
20 tips for website performance
Rachel Costello — The Landscape of Site Speed and Web Vitals
Ad

More from Diego Cardozo (15)

PDF
El proximo billon de usuarios
PDF
The next billion users
PDF
Troubleshooting Ecommerce Performance
PDF
Cranking It Up - SuiteWorld 2017
PDF
Speed Thrills - Suiteworld 2016
PPTX
Performance in the cloud
PDF
Cómo testear performance sin morir en el intento
PDF
Optimizar performance sin morir en el intento
PDF
Testeando performance sin morir en el intento
PDF
Organización de aplicaciones web con Backbone.js
PDF
Structuring web applications with Backbone.js
PDF
Component Based Software Development
PDF
Desarrollo de Software Basado en Componentes
PDF
Single page applications
PDF
Single Page Applications
El proximo billon de usuarios
The next billion users
Troubleshooting Ecommerce Performance
Cranking It Up - SuiteWorld 2017
Speed Thrills - Suiteworld 2016
Performance in the cloud
Cómo testear performance sin morir en el intento
Optimizar performance sin morir en el intento
Testeando performance sin morir en el intento
Organización de aplicaciones web con Backbone.js
Structuring web applications with Backbone.js
Component Based Software Development
Desarrollo de Software Basado en Componentes
Single page applications
Single Page Applications

Recently uploaded (20)

PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
ai tools demonstartion for schools and inter college
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
System and Network Administration Chapter 2
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
top salesforce developer skills in 2025.pdf
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
medical staffing services at VALiNTRY
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Transform Your Business with a Software ERP System
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Introduction to Artificial Intelligence
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
ai tools demonstartion for schools and inter college
Which alternative to Crystal Reports is best for small or large businesses.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
System and Network Administration Chapter 2
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
wealthsignaloriginal-com-DS-text-... (1).pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Odoo Companies in India – Driving Business Transformation.pdf
top salesforce developer skills in 2025.pdf
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Design an Analysis of Algorithms II-SECS-1021-03
medical staffing services at VALiNTRY
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Digital Strategies for Manufacturing Companies
Transform Your Business with a Software ERP System
Navsoft: AI-Powered Business Solutions & Custom Software Development
Introduction to Artificial Intelligence

Optimize performance and not die trying

  • 1. Optimize PerformanceOptimize Performance (and not die trying)(and not die trying) Diego Cardozo Sr. Web Performance Engineer @ NetSuite
  • 2. MotivationMotivation 3 pillars in user experience Design Usability Performance 80% - 90% load time comes from the front end Additionally... Better user conversion Affects Google search result rankings
  • 3. ChallengeChallenge Initial goal for this talk: teach everything required to build fast sites 12 hour talk? Very complex (a.k.a boring) This group is too diverse for a technical talk New goal Drill into the world of web performance Go over the main optimization techniques If I was successful... Continue learning by enrolling in Google's web performance course (link at the end)
  • 4. Agenda / FocusAgenda / Focus 1. Measure Have a clear goal Measure early Measure often 2. Optimize Reduce amount of bytes Reduce critical resources Shorten the Critical Rendering Path (CRP)
  • 6. MeasureMeasure Have a clear goal Twitter - Time to first tweet NetSuite - Performance budget Google - RAIL 100ms 16ms 50ms 1s
  • 8. MeasureMeasure Measure often Know how performance evolves Automation tools Dynatrace / GTMetrix More in my talk from Testing Meetup
  • 10. OptimizeOptimize Theory The CRP is the sequence of steps followed by the browser in order to render a page 1. Parse the HTML and build the DOM 2. Parse the CSS and build the CSSOM 3. Build the Render Tree 4. Position elements on the screen (Layout) 5. Paint the screen
  • 11. OptimizeOptimize Theory The CRP has 3 main components which can be optimized 1. Total amount of bytes to be downloaded 2. Amount of critical resources (HTML, CSS y blocking JS) 3. Amount of roundtrips needed in order to gather critical resources
  • 13. OptimizeOptimize Reduce total amount of bytes Minify, compress and cache HTML CSS JavaScript Remove unused styles Compress images Example: compressor.io Compress and unify fonts unused-css.com
  • 14. OptimizeOptimize Reduce amount of critical resources Concatenate JS and CSS files Use media queries on <link> tags to unblock rendering Write CSS directly on HTML (inline) Leaving everything inline can be harmful Write JS directly on HTML (inline) Still blocks rendering when executed if not marked as async
  • 15. OptimizeOptimize Shorten the Critical Rendering Path (CRP) Delay JavaScript execution Add an async attribute to <script> tags so that they don't block rendering Code optimizations
  • 16. LinksLinks Test performance and not die trying Google/Udacity course on performance optimization My blog post which summarizes the above course Article on removing unused CSS Questions?Questions? dcardozo@netsuite.com slides.com/diegocard/optimize-performance