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
200
0
Share
Responsive use of <img>
A presentation held at [****] for Siili Solutions responsive design and prototyping team
Juga Paazmaya
February 10, 2015
More Decks by Juga Paazmaya
See All by Juga Paazmaya
Accessibility - Presented at TEKOS Workshop in 1st Sep 2022
paazmaya
0
110
CasperJS Workshop 2015-01-23
paazmaya
0
200
Windows Live sähköpostin käyttäminen Gmail-palvelun kautta
paazmaya
0
2.8k
jQuery - The new wave of JavaScript
paazmaya
0
110
Finland – Coming here and going there
paazmaya
1
66
Nanbudo - Nanbu Kata Book preview
paazmaya
0
940
Nice day for a walk
paazmaya
0
81
Valkoviiksi 7 makers
paazmaya
2
140
Other Decks in Technology
See All in Technology
開発を止めない CI/CD ~CI Visibilityによる継続的最適化~
pensuke628
0
220
long-running-tasks
cipepser
2
450
類似画像検索モデルの開発ノウハウ
lycorptech_jp
PRO
4
1.1k
最低限これだけ押さえれ大丈夫_Claude Enterprise/Team企業展開ガバナンス入門
tkikuchi
1
570
AIプラットフォームを運用し続けるための可観測性
tanimuyk
4
760
OpenClawとHermesAgentでAI新入社員を作った話
takanoriyanada
0
150
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
750
はじめてのDatadog
kairim0
0
240
管理アカウント単一運用からAWS Organizationsに移行するの大変で滅
hiramax
0
350
Platform engineering for developers, architects & the rest of us (AI agents)
danielbryantuk
0
160
プラットフォームエンジニア ワークショップ/ platform-workshop
databricksjapan
0
140
AI Adaptable なテストを整える工夫 / Ways to Make Your Tests AI-Adaptable
bitkey
PRO
2
190
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
710
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
130
How to make the Groovebox
asonas
2
2.2k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Claude Code のすすめ
schroneko
67
220k
Chasing Engaging Ingredients in Design
codingconduct
0
200
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
290
Paper Plane (Part 1)
katiecoart
PRO
0
8.1k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
540
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.3k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2k
We Have a Design System, Now What?
morganepeng
55
8.2k
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