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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
100
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
100
Finland – Coming here and going there
paazmaya
1
65
Nanbudo - Nanbu Kata Book preview
paazmaya
0
930
Nice day for a walk
paazmaya
0
81
Valkoviiksi 7 makers
paazmaya
2
130
Other Decks in Technology
See All in Technology
[最強DB講義]推薦システム | 基礎編
recsyslab
PRO
1
170
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
290
インターネットの技術 / Internet technology
ks91
PRO
0
200
Choose your own adventure in agentic design patterns
glaforge
0
130
実践ハーネスエンジニアリング:TAKTで実現するAIエージェント制御 / Practical Harness Engineering: AI Agent Control Enabled by TAKT
nrslib
9
4.4k
昔はシンプルだった_AmazonS3
kawaji_scratch
0
330
Data Hubグループ 紹介資料
sansan33
PRO
0
2.9k
JEDAI in Osaka 2026イントロ
taka_aki
0
320
Master Dataグループ紹介資料
sansan33
PRO
1
4.6k
小説執筆のハーネスエンジニアリング
yoshitetsu
0
640
明日からドヤれる!超マニアックなAWSセキュリティTips10連発 / 10 Ultra-Niche AWS Security Tips
yuj1osm
0
570
ハーネスエンジニアリングをやりすぎた話 ~そのハーネスは解体された~
gotalab555
4
1.6k
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
Optimising Largest Contentful Paint
csswizardry
37
3.6k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
160
Ethics towards AI in product and experience design
skipperchong
2
260
Designing Powerful Visuals for Engaging Learning
tmiket
1
340
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
160
How to build a perfect <img>
jonoalderson
1
5.4k
How to Think Like a Performance Engineer
csswizardry
28
2.5k
Art, The Web, and Tiny UX
lynnandtonic
304
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