https://lynt.cz
Vlada Smitka
vladimir.smitka@lynt.cz
@smitka
Lynt services s.r.o.
5. 1. 2018 1
HTTP/2 vs Image sprites:
Simple test
https://lynt.cz
TEST scenario
• 2000x2000 px image splitted into sprites:
– 1x original image
– 10x sprite 2000x200 px
– 20x sprite 2000x100 px
– 100x sprite 200x200 px
– 400x sprite 100x100 px
• Loading tests:
– Plain HTTP
– HTTPS without extensions
– HTTP/2
• Measurement
– Google Chrome Dev console
– Without throttling + with Fast 3G profile
– 10x loads of each => average value of the 9 fastest loads
5. 1. 2018 2
https://lynt.cz
Original Image
5. 1. 2018 3
• 2000x2000 px
• 570 kB
CC0 - https://www.pexels.com
https://lynt.cz
10x sprites
5. 1. 2018 4
• 2000x200 px
• 57 kB avg
• 576 kB total
https://lynt.cz
20x sprites
5. 1. 2018 5
• 2000x100 px
• 30 kB avg
• 604 kB total
https://lynt.cz
100x sprites
5. 1. 2018 6
• 200x200 px
• 7 kB avg
• 676 kB total
https://lynt.cz
400x sprites
5. 1. 2018 7
• 100x100 px
• 2.5 kB avg
• 1005 kB total
Almost 2x than
original
https://lynt.cz
Results (normal speed)
5. 1. 2018 8
1 10 20 100 400
http 325 539 392 632 1702
http2 286 299 339 313 589
https 290 423 451 487 1418
325 539
392
632
1702
286 299
339
313
589
290
423
451
487
1418
0
200
400
600
800
1000
1200
1400
1600
1800
Timetoload[ms]
Number of static resources
Time to load (normal speed)
https://lynt.cz
Results (Fast 3G)
5. 1. 2018 9
1 10 20 100 400
http 4240 4317 4864 11397 40543
http2 4237 4317 4718 8764 26926
https 4233 4317 4713 11413 40323
4240 4317
4864
11397
40543
4237 4317 4718
8764
26926
4233 4317 4713
11413
40323
0
5000
10000
15000
20000
25000
30000
35000
40000
45000
Timetoload[ms]
Number of static resources
Time to load (Fast 3G throttling)
https://lynt.cz
• Use HTTP/2
• Optimize the number of resources
• Don't get rid of sprites completely
The best HTTP request is no HTTP request!
5. 1. 2018 10

More Related Content

PDF
Hacking Web Performance
PPT
Responsive Images FCIP July 2013
PDF
Hacking Web Performance
PDF
Mobile web performance dwx13
PDF
Hacking Web Performance 2019
PPTX
Imagesandvideo stockholm fastandbeautiful
PDF
Hacking Web Performance @ ForwardJS 2017
PDF
Responsive Images and Performance
Hacking Web Performance
Responsive Images FCIP July 2013
Hacking Web Performance
Mobile web performance dwx13
Hacking Web Performance 2019
Imagesandvideo stockholm fastandbeautiful
Hacking Web Performance @ ForwardJS 2017
Responsive Images and Performance

Similar to Http/2 vs Image Sprites (20)

POTX
Its timetostopstalling androidcork
PPTX
Avtex Lync 2013 Event - Fargo
PDF
Don't make me wait! or Building High-Performance Web Applications
PPTX
Imagesandvideo stockholm webmeetup
PPTX
RubyConf 2012: Custom Reverse Proxies
PDF
Rails scaling
PPTX
Speed Up Your Site
KEY
Rails Performance Tricks and Treats
PDF
Active Https Cookie Stealing
PDF
Speed Up Wordpress Wordcamp Pdx 2009
PPTX
EscConf - Deep Dive Frontend Optimization
PPT
performance.ppt
PPTX
Imagesandvideo tallinn
PPTX
WordPress performance tuning
PPTX
Edi ux fastandbeautiful
PDF
Modern Web Development
PDF
High Performance Images: Beautiful Shouldn't Mean Slow (Velocity EU 2015)
PDF
Everything Goes Better With Bacon: Revisiting the Six Degrees Problem with a ...
PPTX
Fastandbeautiful chemnitz
PDF
CSS and image optimization
Its timetostopstalling androidcork
Avtex Lync 2013 Event - Fargo
Don't make me wait! or Building High-Performance Web Applications
Imagesandvideo stockholm webmeetup
RubyConf 2012: Custom Reverse Proxies
Rails scaling
Speed Up Your Site
Rails Performance Tricks and Treats
Active Https Cookie Stealing
Speed Up Wordpress Wordcamp Pdx 2009
EscConf - Deep Dive Frontend Optimization
performance.ppt
Imagesandvideo tallinn
WordPress performance tuning
Edi ux fastandbeautiful
Modern Web Development
High Performance Images: Beautiful Shouldn't Mean Slow (Velocity EU 2015)
Everything Goes Better With Bacon: Revisiting the Six Degrees Problem with a ...
Fastandbeautiful chemnitz
CSS and image optimization
Ad

More from Vladimír Smitka (20)

PPTX
Google Tag Manager a analytika ve WordPress
PPTX
WordCamp Bratislava 2019 - Cache!
PPTX
Webmeetup #3
PPTX
Co ukázal globální scan přístupných .git repozitářů?
PPTX
Hesla a vícefaktorová autentizace ve WP
PPTX
WP Weekend 2018
PPTX
Drobné chyby, které vám mohou zlomit vaz
PPTX
Sysops tipy pro lepší WP
PPTX
Najčastejšie problémy WordPress webov
PPTX
PPTX
WordCamp Brno 2017 - rychlý a bezpečný web
PPTX
WordPress - základy bezpečnosti
PPTX
Nejčastejší problémy WordPress webů
PPTX
Wordfence 2016
PPTX
WordPress Security: Defend yourself against digital invaders
PPTX
WordPress: Základy - bezpečnost 3x3
PPTX
Instalace WordPress
PPTX
WP výkon a jeho profilování
PPTX
WordCamp Praha 2016 - Bezpečnost WordPress
PPTX
Výkon WordPress
Google Tag Manager a analytika ve WordPress
WordCamp Bratislava 2019 - Cache!
Webmeetup #3
Co ukázal globální scan přístupných .git repozitářů?
Hesla a vícefaktorová autentizace ve WP
WP Weekend 2018
Drobné chyby, které vám mohou zlomit vaz
Sysops tipy pro lepší WP
Najčastejšie problémy WordPress webov
WordCamp Brno 2017 - rychlý a bezpečný web
WordPress - základy bezpečnosti
Nejčastejší problémy WordPress webů
Wordfence 2016
WordPress Security: Defend yourself against digital invaders
WordPress: Základy - bezpečnost 3x3
Instalace WordPress
WP výkon a jeho profilování
WordCamp Praha 2016 - Bezpečnost WordPress
Výkon WordPress
Ad

Recently uploaded (20)

PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
Architecture types and enterprise applications.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PPT
What is a Computer? Input Devices /output devices
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
STKI Israel Market Study 2025 version august
PPT
Geologic Time for studying geology for geologist
Zenith AI: Advanced Artificial Intelligence
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Convolutional neural network based encoder-decoder for efficient real-time ob...
The influence of sentiment analysis in enhancing early warning system model f...
CloudStack 4.21: First Look Webinar slides
Custom Battery Pack Design Considerations for Performance and Safety
2018-HIPAA-Renewal-Training for executives
Architecture types and enterprise applications.pdf
Hindi spoken digit analysis for native and non-native speakers
sbt 2.0: go big (Scala Days 2025 edition)
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Abstractive summarization using multilingual text-to-text transfer transforme...
What is a Computer? Input Devices /output devices
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
NewMind AI Weekly Chronicles – August ’25 Week III
sustainability-14-14877-v2.pddhzftheheeeee
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
STKI Israel Market Study 2025 version august
Geologic Time for studying geology for geologist

Http/2 vs Image Sprites