SlideShare a Scribd company logo
Improving Responsive Web Design Process 2016
@chumillas
IMPROVING THE RESPONSIVE
WEB DESIGN PROCESS IN 2016
Cristina Chumillas
@chumillas
@chumillas
@chumillas
Cristina Chumillas
DESIGNER AND FRONTEND DEVELOPER AT YMBRA
ckrina
“Mobile to overtake fixed Internet
access by 2014”
2008 by Mary Meeker
Modern Design processes
@chumillas
Content-First
Mobile-First
@chumillas
Content-First
Mobile-First
Static compositions
@chumillas
Get into the browser quickly!
Content-First
Mobile-First
Responsive prototypes
@chumillas
Content-First
Mobile-First
Responsive prototypes
Lorem ipsum
@chumillas
Content-First
Mobile-First
Responsive prototypes
Real content (extreme cases)
@chumillas
Atomic Design and components
Content-First
Mobile-First
Responsive prototypes
Real content (extreme cases)
Performance
@chumillas
Performance = UX
4”
16%
64%
smartphone
users
page weight
2015
2,2Mb
average
2,2Mb
average
Improving Responsive Web Design Process 2016
@chumillas
5KB
HTML
125KB
Images
7KB
CSS
33KB
JS
20KB
VIDEO
10KB
Fonts
2s Fast 3G
(1.6Mb)
200KB
http://www.performancebudget.io
We have to decide the performance budget
@chumillas
“Perceived performance: your most critical metric”
Immediate
User-flow (human-interaction)
Limit attention span
1s
1-5s
5-10s
Performance = UX
@chumillas
238ms 300ms 452ms 497ms 651ms
HTML
logo
header image
other images
footer background
other JS
CSS
jQuery
Modernizr
@chumillas
687ms 825ms 895ms 954ms 1.25ms
other images
footer background
other JS
3rd party stuff (Analytics, Ads, etc)
fonts
FOIT
Improving Responsive Web Design Process 2016
@chumillas
Optimize image files
Concatenate text files
Minimify text files
Compress text files
Cache everywhere
TIPS
CSS structuring
and optimization
@chumillas
CSS Methodologies
· OOCSS
· BEM
· SMACSS
@chumillas
Reuse CSS
CSS Methodologies
@chumillas
Reduce page size
Reuse CSS
CSS Methodologies
@chumillas
Reduce page size
Increase page rendering speed
Reuse CSS
CSS Methodologies
@chumillas
.element-name--last {}
.box:nth-last-child(-n+1) .title {}
Reuse CSS
Faster CSS rendering
CSS Methodologies
@chumillas
Reuse CSS
Faster CSS rendering
Large scale ready
Helps you to figure out what your design is made of
Helps you getting started in a project
CSS Methodologies
@chumillas
Living document of code
that details all the elements
of your site.
Living styleguides
@chumillas
Give faster build times for new sections & pages
Standardize the CSS, keeping it small &
quick to load
Design consistency is easier to maintain
Living styleguides
“Fifty Shades of Grey in CSS”
by @pistenprinz
Fixed-pixel vs relative units
@chumillas
Layouts benefits from relative units.
16px
= =
1em 1rem
@chumillas
1.1 x the base 16px
17,6px (1.1 x the previous)
19,36px (1.1 x the previous)
1.1 x the base
1.1 x the base
emrem
@chumillas
Viewport Sized Units
vw
vh
vmax
Improving Responsive Web Design Process 2016
Responsive Typography
@chumillas
Decide on user’s distance from the screen
@chumillas
Title
Title
14px
16px60 rems 22 rems
40-80 characters 40-60 characters
Occusapicim dit doluptassum que labo. Em
sam ilictumPore quisqui officitaspit volenis
eturio est venim ipis ex eturepe llandit eum,
untium, quostot aturia sim sam corendanihit
fugianis delitio sandae volupta quate re nos
aut et dolendi tatium, offic te nos est aliat que
perum et eaquatu riberibus mo cus.
Peruntio. Nequiam et quo eum lab ipsa
cusantiberro maxim faccus am et voluptatem
voluptae pa cuptas et quae simagnim facienis
et et ese pa sanis aut autem asi unt ommodis
aut fugitasped qui omnimag nisimil laborum
sunt adit, voluptatur rero opti aris aut rerum
eos eatint, vitatem. Rovid quid ma aut maximi,
oditat lamus imusdantiis ex excessi tatque
poriatur?
Occusapicim dit doluptassum que
labo. Em sam ilictumPore quisqui
officitaspit volenis eturio est venim
ipis ex eturepe llandit eum, untium,
quostot aturia sim sam corendanihit
fugianis delitio sandae volupta quate
re nos aut et dolendi tatium, offic te
nos est aliat que perum et eaquatu
riberibus mo cus.
Peruntio. Nequiam et quo eum lab
ipsa cusantiberro maxim faccus am
et voluptatem voluptae pa cuptas
et quae simagnim facienis et et ese
pa sanis aut autem asi unt ommodis
aut fugitasped qui omnimag nisimil
laborum sunt adit, voluptatur rero
opti aris aut rerum eos eatint,
vitatem. Rovid quid ma aut maximi,
oditat lamus imusdantiis ex excessi
tatque poriatur?
@chumillas
200KB
TOTAL
5% 10KB
FONTS
Open Sans Regular
38KB TTF TrueType font
EOT Embedded Open Type
WOFF/WOFF2 Web Open Font Format
SVG Scalable Vector Graphics font
20KB
23KB
119KB
@chumillas
WEB FONT FORMATS
EOT
IE 8-11
IE 9-11
Edge
Firefox
Chrome
Safari
Opera
iOS
Android
OTF/TTF WOFF WOFF2 SVG
https://creativemarket.com/blog/the-missing-guide-to-font-formats
@chumillas
FOITFOUT
“Flash of Unstyled Text” “Flash of Invisible Text”
Browsers used to display a
fallback font in the font stack
until the custom one loaded.
Browsers started to detect if
text was set in a custom font
that hasn’t loaded yet, and
made it invisible until the font
did load.
@chumillas
• Powered by CSS, no JS
• Limited to open source fonts
• Accessible
• Too big fonts
• No external plugins
• No common format
@font-face Fonts.com Google fonts Typekit
PROS:
CONS:
@chumillas
• Large selection
• Monthly fees
• Exclusive fonts
• Limited to their library
• Language support
@font-face Fonts.com Google fonts Typekit
PROS:
CONS:
@chumillas
• Powered by CSS, no JS
• Limited choice
• Accessible
• Not exclusive design
• Cached & fast
• Easy implementation
PROS:
CONS:
@font-face Fonts.com Google fonts Typekit
@chumillas
• Largest fonts library
• Premium service
• Accessible
• Cached & fast
• Easy implementation
PROS:
CONS:
@font-face Fonts.com Google fonts Typekit
@chumillas
Readability
Correct font size depending on container
TIPS
@chumillas
Readability
Use less fonts
Correct font size depending on container
Do you need them?
TIPS
Improving Responsive Web Design Process 2016
@chumillas
Readability
Use less fonts
Use modern font formats
Correct font size depending on container
Do you need them?
Reduce the page weight
TIPS
Images
@chumillas
JPG PNG 24-bitPNG 8-bit
@chumillas
Browsers request images asynchronously
Images too big for the device
61% website bytes
FACTS
@chumillas
The aim is to deliver the
highest quality image supported
and nothing more.
@chumillas
Scaled images
<img
	 srcset=”image-large.jpg 1920w,
	 image-medium.jpg 960w,
	 image-small.jpg 480w”
	 sizes=”50vw”
	 src=”quilt_2/detail/medium.jpg”
	 alt=”Detail text.”>
(just changing resolutions)
@chumillas
Adapted images (changing images)
@chumillas
<picture title=”Image title”>
	<source
		srcset=”image-big.jpg 1x, image-big2x.jpg 2x”
		 media=”(min-width: 0px) and (max-width:
29.99em)”>
	
	<source
		srcset=”image-big.jpg 1x, image-big2x.jpg 2x”
		 media=”(min-width: 30em)”>
	 <img srcset=”image-big.jpg 180w”>
</picture>
Adapted images (changing images)
@chumillas
Responsive Images in D8
Picture in D7
In core (disabled by default)
1.5x, 2x, ... (hight resolution)
Lazy load in D7, contrib in D8
Improving Responsive Web Design Process 2016
@chumillas
Crop API
• Image widget crop
• Focal point
@chumillas
Crop API
• Image widget crop
• Focal point
@chumillas
Crop API
• Image widget crop
• Focal point
@chumillas
What else?
@chumillas
What else?
Designer’s creativity.
@chumillas
Apple
AppleT H I S I S A N A D .
T H I S I S A N A D .
@chumillas
Create one field for each image
Prepare each picture/image URLs in a variable
Create the image styles
Print it in a custom template
@chumillas
ReSrc, thumbr.io, responsive.io
Cloudinary
Picturefill
Scaling based on the targeted end result
Scaling based on url.
Scaling based on media-queries.
...
Non Drupal solutions
@chumillas
SVGs
Scaling
Scales to any size without losing clarity
based on the targeted end result
Looks great on retina displays
Design control like interactivity and filters
SCALABLE VECTOR GRAPHICS
Future-proof
Easy to make and edit
Manipulatable with CSS & JS *
Highly compressible
Asynchronous loading
@chumillas
Connection Setup
Starts printing
Request Sent
Waiting response
Download
Default behavior
HTML
CSS
JS 1
JS 2
JS 2
JS 3
JS 3
@chumillas
Default behavior
<html>
<head>
<link rel=”stylesheet” href=”styles.css”/>
<script src=”javascript.js”></script>
</head>
<body>
<div>Page content</div>
</body>
</html>
@chumillas
Async
<html>
<head>
<link rel=”stylesheet” href=”styles.css”/>
<script src=”javascript.js” async></script>
</head>
<body>
<div>Page content</div>
</body>
</html>
@chumillas
While the JavaScript file is loading, parsing the
HTML document can continue
JS execution no longer has to wait for CSS
You can’t guarantee the order of JS execution
Async
i
@chumillas
Defer
<script src=”javascript.js” defer></script>
Deferred scripts are executed only after the HTML page has
been parsed
It has the potential to interfere with the rendering of the
page
Deferred scripts will execute in the order they appear
async has priority
i
i
@chumillas
<html>
<head>
<link rel=”stylesheet” href=”styles.css”/>
<script src=”javascript.js”></script>
<script src=”javascript.js” async/defer></script>
<script>
// JavaScript source code goes here.
</script>
</head>
<body>
<!-- Page content -->
<script src=”javascript.js”></script>
</body>
</html>
Asynchronous loading
Proxy-based browsers
@chumillas
Reduce bandwidth usage by
compressing resources
on a proxy server
before sending it to the client browser.
India, Indonesia, Nigeria, Bangladesh
and South Africa
Opera Mini users
250
million
@chumillas
Use SVG rather than icon fonts
Style your HTML with CSS
Test your site without JavaScript
Make your site performant
Test in Opera Mini
TIPS
@chumillas
Progressive enhancement
Basic content and functionality of a web
page to any browser or Internet connection
Enhanced version advanced browser
software or greater bandwidth
Beyond the Mouse
TOUCH & KEYBOARD EVENTS
@chumillas
• Be accessible in browsers where a mouse pointer
may not exist.
• Don’t assume touch will be used,
but design as if it will be.
Save hover for shortcuts
@chumillas
Save hover for shortcuts
Keep in touch
57x45px
safe space
thumbfinger
72x45px
@chumillas
Gestures: don’t override system defaults
Save hover for shortcuts
Keep in touch
RWD patterns
@chumillas
are recurring solutions
that solve common design problems.
Design patterns
@chumillas
• Menus
• Tabs
• Jumping in hierarchy
• Content
Navigation patterns
- breadcrumbs
- fat footer
- ...
- Carousel
- Tag cloud
- Pagination
- ...
ui-patterns.com
@chumillas
Navigation patterns
Forms
• Password Strength Meter
• Captcha
• WYSIWYG
• Calendar Picker
• Input Feedback
• Inplace Editor
• Drag and drop
• Good Defaults
• ...
ui-patterns.com
@chumillas
Navigation patterns
Forms
Dealing with data
ui-patterns.com
• Tables
• Search (autocomplete, search filters)
• Formatting data (FAQs, Dashboard,...)
• Images (Slideshow, Gallery, Zoom...)
duckduckgo.com/about
@chumillas
Navigation patterns
Forms
Dealing with data
Shopping
Progressive Disclosure
Onboarding
Social, Grids, ...
ui-patterns.com
Conclusions
@chumillas
Keep adapting your workflow
Keep in weight
Take the most of new technologies
Keep the user in mind
Be prepared for the uncertain
@chumillas
Keep evolving.
Thank you!
@chumillas
@chumillas
JOIN US FOR
CONTRIBUTION SPRINTS
First Time Sprinter Workshop - 9:00-12:00 - Room Wicklow 2A
Mentored Core Sprint - 9:00-18:00 - Wicklow Hall 2B
General Sprints - 9:00 - 18:00 - Wicklow Hall 2A
Improving Responsive Web Design Process 2016
WHAT DID YOU THINK?
Evaluate this session
events.drupal.org/dublin2016/schedule
THANK YOU!

More Related Content

PDF
Responsive Design Tools & Resources
ODP
Responsive Web Design - but for real!
PDF
Introduction to Responsive Web Design
PDF
Leveling up your JavaScipt - DrupalJam 2017
PDF
Breaking out of the Tetris mind set #btconf
DOC
Electronic portfolio and tws presentations links
PPTX
Make JavaScript Faster
PDF
The Soul in The Machine - Developing for Humans (FrankenJS edition)
Responsive Design Tools & Resources
Responsive Web Design - but for real!
Introduction to Responsive Web Design
Leveling up your JavaScipt - DrupalJam 2017
Breaking out of the Tetris mind set #btconf
Electronic portfolio and tws presentations links
Make JavaScript Faster
The Soul in The Machine - Developing for Humans (FrankenJS edition)

What's hot (14)

PDF
The Soul in The Machine - Developing for Humans
PDF
Performance.now() fast but not furious
PDF
Responsive Design
KEY
UTEP AITP Presentation - 10/17/2012
PDF
Responsive Design in the Real World
PDF
The Users are Restless
PPTX
Wordcamp rochester-2017-accessibility-johnson-steigelman
PDF
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
PDF
Mobile First Responsive Web Design — BD Conf Oct 2013
PDF
Lots of ways to speed up your site
PPTX
MOBILE SEO - O CZYM MUSISZ PAMIĘTAĆ, Łukasz Żelezny
PDF
Wordcamp rochester-2017-accessibility-johnson-steigelman
PDF
RESS: An Evolution of Responsive Web Design
PPTX
Responsive Web Design for Universal Access 2016
The Soul in The Machine - Developing for Humans
Performance.now() fast but not furious
Responsive Design
UTEP AITP Presentation - 10/17/2012
Responsive Design in the Real World
The Users are Restless
Wordcamp rochester-2017-accessibility-johnson-steigelman
Better Performance === Greater Accessibility [Inclusive Design 24 2018]
Mobile First Responsive Web Design — BD Conf Oct 2013
Lots of ways to speed up your site
MOBILE SEO - O CZYM MUSISZ PAMIĘTAĆ, Łukasz Żelezny
Wordcamp rochester-2017-accessibility-johnson-steigelman
RESS: An Evolution of Responsive Web Design
Responsive Web Design for Universal Access 2016
Ad

Similar to Improving Responsive Web Design Process 2016 (20)

PDF
Improving the Responsive Web Design Process in 2016
PDF
Old Dog, New Tricks
PDF
Introduction to Responsive Design v.2
PDF
Responsive Web Design Process
PDF
Improving frontend performance
PDF
Using Cool New Frameworks in (Mobile) Domino Apps
PDF
mLearnCon 2014 - A responsive web solution for a complex online educational p...
PPTX
FITC - 2012-04-23 - Responsive Web Design
PDF
Style Guide Best Practices
KEY
The web standards gentleman: a matter of (evolving) standards)
PDF
Responsive Process HOW Interactive
PDF
6 Things to Think About Before Building Your Website
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Amp your site: An intro to accelerated mobile pages
PDF
Progressive Web Apps – the return of the web? Goto Berlin 2016
PPTX
A Day Building Fast, Responsive, Extensible Single Page Applications
KEY
Let's dig into the Omega Theme!
PPTX
EVOLVE'16 | Maximize | Gina Petruccelli & Libby Schaper | Web Accessibility &...
PPTX
EVOLVE'16 | Maximize | Libby Schaper & Gina Petrucceli | Web Accessibility & AEM
PDF
Jennifer Robbins: ARTIFACT EAST Keynote (Providence, 11/4/13)
Improving the Responsive Web Design Process in 2016
Old Dog, New Tricks
Introduction to Responsive Design v.2
Responsive Web Design Process
Improving frontend performance
Using Cool New Frameworks in (Mobile) Domino Apps
mLearnCon 2014 - A responsive web solution for a complex online educational p...
FITC - 2012-04-23 - Responsive Web Design
Style Guide Best Practices
The web standards gentleman: a matter of (evolving) standards)
Responsive Process HOW Interactive
6 Things to Think About Before Building Your Website
Using Responsive Web Design To Make Your Web Work Everywhere
Amp your site: An intro to accelerated mobile pages
Progressive Web Apps – the return of the web? Goto Berlin 2016
A Day Building Fast, Responsive, Extensible Single Page Applications
Let's dig into the Omega Theme!
EVOLVE'16 | Maximize | Gina Petruccelli & Libby Schaper | Web Accessibility &...
EVOLVE'16 | Maximize | Libby Schaper & Gina Petrucceli | Web Accessibility & AEM
Jennifer Robbins: ARTIFACT EAST Keynote (Providence, 11/4/13)
Ad

Recently uploaded (20)

PPT
UNIT I- Yarn, types, explanation, process
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPT
Machine printing techniques and plangi dyeing
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PDF
The Advantages of Working With a Design-Build Studio
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
DOCX
actividad 20% informatica microsoft project
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPTX
Special finishes, classification and types, explanation
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PPTX
Entrepreneur intro, origin, process, method
PPTX
EDP Competencies-types, process, explanation
PDF
Urban Design Final Project-Site Analysis
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPTX
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"
UNIT I- Yarn, types, explanation, process
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
Machine printing techniques and plangi dyeing
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
YOW2022-BNE-MinimalViableArchitecture.pdf
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
The Advantages of Working With a Design-Build Studio
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
actividad 20% informatica microsoft project
Wisp Textiles: Where Comfort Meets Everyday Style
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
Tenders & Contracts Works _ Services Afzal.pptx
Special finishes, classification and types, explanation
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Entrepreneur intro, origin, process, method
EDP Competencies-types, process, explanation
Urban Design Final Project-Site Analysis
YV PROFILE PROJECTS PROFILE PRES. DESIGN
Complete Guide to Microsoft PowerPoint 2019 – Features, Tools, and Tips"

Improving Responsive Web Design Process 2016