Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Responsive use of <img>
Search
Juga Paazmaya
February 10, 2015
Technology
0
190
Responsive use of <img>
A presentation held at [****] for Siili Solutions responsive design and prototyping team
Juga Paazmaya
February 10, 2015
Tweet
Share
More Decks by Juga Paazmaya
See All by Juga Paazmaya
Accessibility - Presented at TEKOS Workshop in 1st Sep 2022
paazmaya
0
100
CasperJS Workshop 2015-01-23
paazmaya
0
190
Windows Live sähköpostin käyttäminen Gmail-palvelun kautta
paazmaya
0
2.8k
jQuery - The new wave of JavaScript
paazmaya
0
100
Finland – Coming here and going there
paazmaya
1
63
Nanbudo - Nanbu Kata Book preview
paazmaya
0
910
Nice day for a walk
paazmaya
0
79
Valkoviiksi 7 makers
paazmaya
2
130
Other Decks in Technology
See All in Technology
OCI技術資料 : 外部接続 VPN接続 詳細
ocise
1
10k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
primeNumber DATA MANAGEMENT CAMP #2:
masatoshi0205
1
640
オンプレとGoogle Cloudを安全に繋ぐための、セキュア通信の勘所
waiwai2111
3
1k
生成AI活用によるPRレビュー改善の歩み
lycorptech_jp
PRO
4
1.7k
社内ワークショップで終わらせない 業務改善AIエージェント開発
lycorptech_jp
PRO
1
410
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
22k
AWS CDK の目玉新機能「Mixins」とは / cdk-mixins
gotok365
2
290
バニラVisaギフトカードを棄てるのは結構大変
meow_noisy
0
160
LY Tableauでの Tableau x AIの実践 (at Tableau Now! - 2026-02-26)
yoshitakaarakawa
0
970
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
1.9k
Bash Introduction
62gerente
615
210k
The SEO Collaboration Effect
kristinabergwall1
0
380
The agentic SEO stack - context over prompts
schlessera
0
670
We Have a Design System, Now What?
morganepeng
55
8k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
130
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
140
A Modern Web Designer's Workflow
chriscoyier
698
190k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
80
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
230
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
470
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Transcript
Responsive use of
So far the images have been somewhat static
HTML 4 required to use src and alt
XHTML required a closure
HTML5 introduced new properties
Why not ?
srcset Descriptor defines the width of the image (w) or
the pixel ratio (x)
srcset width use case Usually used when the image has
dynamic size
srcset pixel density use case Usually used when the image
is used in a fixed layout
None
None
None
srcset - benefit & problem
sizes “If the srcset attribute is present, the sizes attribute
may also be present”
sizes examples First matched, first served. Default:
None
srcset & sizes - only benefit
Pixel density matters
3x
Quiz When srcset is unsupported by the given browser, which
image from the example markup below will be downloaded?
What problems does this bring? Duplication of media queries from
styles to markup, hence semantics mixed
What problems does this solve? Browser will download only the
images that are best fitting to the given use case, hence better use bandwidth
What problems does this solve? Developer can leave the calculations
of which image to use in a given case to the browser
Would you like to know more? Please see the talk
“Responsive images are coming to a browser near you” by Yoav Weiss at VelocityConf 2014 youtube.com/watch?v=GC3VgcltKKI
More further reading Please also see the in depth post
by Eric Portis about the topic: ericportis.com/posts/2014/srcset-sizes
Thank you I am Jukka Paasonen, a Responsive Consultant at
Siili Solutions