SlideShare a Scribd company logo
FRONTEND
PERFORMANCE
Mathias / Björn
16.03.2019 Performance 2
Björn Jacob
16.03.2019 Performance 3
“ZALANDOSAWA0.7%INCREASEIN
REVENUEWHENTHEYSHAVED
100MSOFFTHEIRLOADTIME.”
16.03.2019 Performance 4
“CAROUSELLREDUCEDPAGELOAD
TIMEBY65%ANDSAWA63%
INCREASEINORGANIC TRAFFIC[...]”
16.03.2019 Performance 5
TIMKADLEC
17.6MILLIONKILOWATTHOURS
2BILLIONPEOPLE
5PAGES/D
1.500.000GBDATA
16.03.2019 Performance 6
16.03.2019 Performance 7
MAGIC NUMBERS
FCP (fast)
 TYPO3: 44,82%
 Neos: 51,3%
 Umbraco: 45,61%
16.03.2019 Performance 8
PILLARS OF
PERFORMANCE
16.03.2019 Performance 9
PILLARS OF PERFORMANCE
 Server Side Rendering
 Asset delivery
 Client bandwidth
 Client CPU cycles
16.03.2019 Performance 10
SERVER SIDE RENDERING
 Write fast code
 Cache what can‘t be made fast
 Consider stuff older than 5 sec static
 Performance is design
 OP-TI-MIZE
16.03.2019 Performance 11
ASSET DELIVERY
 Deliver fast
 Deliver regionally
 Deliver optimized
 Really mean that!
 OP-TI-MIZE… please
16.03.2019 Performance 12
“53%OFVISITS TOMOBILESITES
AREABANDONEDAFTER3SECONDS
ACCORDING.”GOOGLEDOUBLECLICK
16.03.2019 Performance 13
CLIENT BANDWIDTH
 3G is broadband
 Company culture: One day of 2G per month
 Ship less HTML
 Ship less CSS
 Ship WAY less JS
 OP-TI-MIZE…. Pretty please
16.03.2019 Performance 14
16.03.2019 Performance 15
CLIENT CPU CYCLES
 Test on slow devices
 Kill on-scroll
 Transition via CSS
 Offload defered JS onto threads
 Aim for 60 fps
Some Flowers™: 15fps  60fps +25%
conversion
16.03.2019 Performance 16
16.03.2019 Performance 17
TERMINOLOGY
16.03.2019 Performance 18
TERMINOLOGY
 FCP, FMP, TTI
 PB: Performance Budget
 Bloat: CSS/JS not used in current document
16.03.2019 Performance 19
12 TIPS
16.03.2019 Performance 20
1 SET GOALS
 First Meaningful Paint < 1 sec
 Time to Interactive < 5 sec (on slow 3G)
 Time to interactive < 2 sec (repeated visits)
16.03.2019 Performance 21
2: CRITICAL CSS
 Max Budget: 14kb
 Include in <head>
 Consider click through
 Bloat Budget: 15%
 Stay < 170kb textfile-size (compressed)
16.03.2019 Performance 22
3 LOAD LIGHTLY
 Trim
 Defer
 Lazy-load
 Use lightweight alternatives
 Minimize 3rd party scripts
16.03.2019 Performance 23
4 LEGACY LOADING
 Load core scripts normally
 Use <script type=„module“> for modern
browsers
16.03.2019 Performance 24
5 CSS GROUPING
 Load blocking JS before blocking CSS
 Split up critical CSS per media query
 Measure
 Experiment
 Repeat
16.03.2019 Performance 25
6 RESOURCE HINTS (HTTPS://W3C.GITHUB.IO/RESOURCE-HINTS/)
 dns-lookup
 preconnect
 prefetch
 preload (carefully)
16.03.2019 Performance 26
7 WEBFONTS
 Seriously consider system fonts
 Remove bloat subsets
 Remove bloat charsets
 Make use of font-display
(swap/ optional)
16.03.2019 Performance 27
“CHANGING THE WAY
FONTS WERE LOADED
[…] RESULTED IN THE
SPEED INDEX DROPPING
BY 50% FOR 4G
MOBILES.“
GOV.UK
16.03.2019 Performance 28
8 OPTIMIZE IMAGES
 Use webP
 Optimize image size per viewport
 Bootstrap package can help here
 dreistrom.land‘s Image Rendering Service
for lossless compression and convertion to
modern images formats
16.03.2019 Performance 29
9 HEADERS
 Set HTTP Cache headers properly
 Set HTTP security headers properly
16.03.2019 Performance 30
10 COMPRESSION
 Use Brotli
 Use Zopfli
 Use at least gzip
16.03.2019 Performance 31
11 HTTP/2
 Serve via HTTP/2
 Verify HPACK compression is available
 Monitor mixed-content warnings
 Enable OCSP stapling
 ^^ speeds up TLS handshakes
16.03.2019 Performance 32
12 SERVICE WORKER
 Use service worker cache for
 … webfonts
 … CSS
 … JS
 … re-used images
16.03.2019 Performance 33
STILL THINK
YOU‘RE
„DESIGNING“?
16.03.2019 Performance 34
SOURCES
 https://wpostats.com/
 https://timkadlec.com/
 https://www.smashingmagazine.com/2019/01/front-
end-performance-checklist-2019-pdf-pages/
 https://technology.blog.gov.uk/2018/10/04/making-
gov-uk-pages-load-faster-and-use-less-data/
 https://docs.google.com/spreadsheets/d/1lBQ0T1VB
lBrpkv5Q1vQJkU8hnya_5tRczf9c5TfIgnQ/edit#gid=0
16.03.2019 Performance 35
THANK YOU!
16.03.2019 Performance 36

More Related Content

PPTX
T3CMD19 - Day 2 - Performance
PDF
Frontend performance on the web | Presentation @ecommercecamp 2019
PDF
Maarten Mulders - Mastering Microservices with Kong - Codemotion Amsterdam 2019
PDF
Mastering Microservices with Kong (CodeMotion 2019)
PDF
High Performance Cooperative Distributed Systems in Adtech
PDF
MongoDB classes 2019
PDF
Microservices: A foundational approach for fully managed cloud data analytics
PDF
Big dataclasses 2019_nosql
T3CMD19 - Day 2 - Performance
Frontend performance on the web | Presentation @ecommercecamp 2019
Maarten Mulders - Mastering Microservices with Kong - Codemotion Amsterdam 2019
Mastering Microservices with Kong (CodeMotion 2019)
High Performance Cooperative Distributed Systems in Adtech
MongoDB classes 2019
Microservices: A foundational approach for fully managed cloud data analytics
Big dataclasses 2019_nosql

Similar to Frontend performance on the web (20)

PDF
Meetup_adessoCamunda_2023-09-13_Part1&2_en.pdf
PDF
Scaling Apache Pulsar to 10 PB/day
PDF
Scaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 Keynote
PDF
Avoiding Log Data Overload in a CI/CD System While Streaming 190 Billion Even...
PPTX
Optimizing SharePoint 2010 Internet Sites
PPTX
Cloud-based dynamic distributed optimisation of integrated process planning a...
PDF
Perf tuning with-multitenant
PPTX
Serverless + Machine Learning – Bringing the best of two worlds together
PDF
OSCamp 2019 | #3 Ansible: Directing the Director by Martin Schurz
PPTX
Mvp skill saturday ep09 _06072019_azure updates - july 2019
PPTX
Cloud native java workshop
PDF
Climate compensate with a pull request (2).pdf
PPTX
Web Application Performance from User Perspective
PDF
Distributed Cache-Aware Transactions for Polyglot Persistence
PPSX
Microservices, Containers, Kubernetes, Kafka, Kanban
PPTX
Presentation mongo db munich
PDF
SOUG Virtual Day 28 May Hervé Schweitzer - Back To The Future
PDF
Client Deployment of IBM Cloud Private (IBM #Think2019 #5964)
PPTX
Rebuilding Web Tracking Infrastructure for Scale
PPTX
Client Deployment of IBM Cloud Private (Think 2019 Session 5964A)
Meetup_adessoCamunda_2023-09-13_Part1&2_en.pdf
Scaling Apache Pulsar to 10 PB/day
Scaling Apache Pulsar to 10 Petabytes/Day - Pulsar Summit NA 2021 Keynote
Avoiding Log Data Overload in a CI/CD System While Streaming 190 Billion Even...
Optimizing SharePoint 2010 Internet Sites
Cloud-based dynamic distributed optimisation of integrated process planning a...
Perf tuning with-multitenant
Serverless + Machine Learning – Bringing the best of two worlds together
OSCamp 2019 | #3 Ansible: Directing the Director by Martin Schurz
Mvp skill saturday ep09 _06072019_azure updates - july 2019
Cloud native java workshop
Climate compensate with a pull request (2).pdf
Web Application Performance from User Perspective
Distributed Cache-Aware Transactions for Polyglot Persistence
Microservices, Containers, Kubernetes, Kafka, Kanban
Presentation mongo db munich
SOUG Virtual Day 28 May Hervé Schweitzer - Back To The Future
Client Deployment of IBM Cloud Private (IBM #Think2019 #5964)
Rebuilding Web Tracking Infrastructure for Scale
Client Deployment of IBM Cloud Private (Think 2019 Session 5964A)
Ad

More from TRITUM (11)

PDF
How-to be a good team lead
PDF
TYPO3 Form Framework v9 & v10
PDF
What's new in TYPO3 v9 LTS
PPTX
TYPO3 v9 - What's up?
PDF
TYPO3 Form framework - features for v9
PDF
TYPO3 form framework
PDF
TYPO3 EXT:form for developers
PDF
TYPO3 EXT:form for integrators
PDF
TYPO3 v8 most important changes
PDF
Präsentation zu EXT:form by TRITUM
PPTX
Das Ende der Logfiles - mit Elasticsearch, Logstash und Kibana zu übersichtli...
How-to be a good team lead
TYPO3 Form Framework v9 & v10
What's new in TYPO3 v9 LTS
TYPO3 v9 - What's up?
TYPO3 Form framework - features for v9
TYPO3 form framework
TYPO3 EXT:form for developers
TYPO3 EXT:form for integrators
TYPO3 v8 most important changes
Präsentation zu EXT:form by TRITUM
Das Ende der Logfiles - mit Elasticsearch, Logstash und Kibana zu übersichtli...
Ad

Recently uploaded (20)

DOCX
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
PPT
250152213-Excitation-SystemWERRT (1).ppt
PDF
Containerization lab dddddddddddddddmanual.pdf
PDF
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
PPTX
Internet Safety for Seniors presentation
PPTX
The-Importance-of-School-Sanitation.pptx
PPTX
newyork.pptxirantrafgshenepalchinachinane
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
Understand the Gitlab_presentation_task.pdf
PDF
simpleintnettestmetiaerl for the simple testint
PDF
Uptota Investor Deck - Where Africa Meets Blockchain
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
si manuel quezon at mga nagawa sa bansang pilipinas
PPTX
t_and_OpenAI_Combined_two_pressentations
PPTX
curriculumandpedagogyinearlychildhoodcurriculum-171021103104 - Copy.pptx
PPTX
module 1-Part 1.pptxdddddddddddddddddddddddddddddddddddd
PDF
Lean-Manufacturing-Tools-Techniques-and-How-To-Use-Them.pdf
PDF
Alethe Consulting Corporate Profile and Solution Aproach
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PPTX
AI_Cyberattack_Solutions AI AI AI AI .pptx
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
250152213-Excitation-SystemWERRT (1).ppt
Containerization lab dddddddddddddddmanual.pdf
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
Internet Safety for Seniors presentation
The-Importance-of-School-Sanitation.pptx
newyork.pptxirantrafgshenepalchinachinane
Exploring VPS Hosting Trends for SMBs in 2025
Understand the Gitlab_presentation_task.pdf
simpleintnettestmetiaerl for the simple testint
Uptota Investor Deck - Where Africa Meets Blockchain
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
si manuel quezon at mga nagawa sa bansang pilipinas
t_and_OpenAI_Combined_two_pressentations
curriculumandpedagogyinearlychildhoodcurriculum-171021103104 - Copy.pptx
module 1-Part 1.pptxdddddddddddddddddddddddddddddddddddd
Lean-Manufacturing-Tools-Techniques-and-How-To-Use-Them.pdf
Alethe Consulting Corporate Profile and Solution Aproach
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
AI_Cyberattack_Solutions AI AI AI AI .pptx

Frontend performance on the web