SlideShare a Scribd company logo
1 of 14
Mobile Best Practices
Responsive Design

•   Responsive design is the practice of
    designing flexible layouts that create a user
    optimized experience across multiple
    viewing contexts.

•   Responsive design is not new.

•   Responsive design is synonomous with CSS3
    Media Queries.
CSS3 Media Queries


•   CSS Media Queries give us a way to control the
    application of styles based on the presence or absence
    of specific media features
•   Not exactly new (media="print/screen/handheld"), but now we
    can apply logic:
     o <link rel="stylesheet" href="awesome.css"
        media="screen and (min-width:500px)" />
    o   @media only screen and (min-width:480px) and (max-
        width:767px) and (orientation : landscape) { /*
        Insert Awesome Style Here */ }
•   Media queries can be either inline or linked
What's so cool about responsive
         design and what's not?

           The Good                              The Ugly
•   Reduced development time.          •   Media query support isn't great
•   Fewer files to maintain.           •   Unnecessary resource loading
•   Looks impressive when viewed       •   Often results in
    on a desktop.                          symmetrical, uninspired
•   Fun to design and develop.
                                           layouts.

•   Earns you instant street cred in
                                       •   Assumes that individuals browse
                                           the same way across devices.
    the web dev community since
    it's been a buzzword for several   •   Can make too many
    years and running.                     compromises resulting in both
•   Endorsed by unicorns.
                                           mediocre or bad desktop and
                                           mobile sites.
Gratuitious LOL Cat
Unnecessary Resource Loading
•   elements set to display:none still load in the background. This
    includes those rascally bandwidth sucking <img>,<script> driven
    widgets, <embed>, <object>.
•   All style sheets linked in a page, even if conditionally not applicable
    through media queries, will load.
•   Background images, even if overwritten by another through a perfectly
    valid cascade, will still load in WebKit based browsers
•   While we can make images fluid, the size of the embedded images
    remains the same between layouts.
•   @font-face web fonts can add overhead and affect performance unless
    applied carefully
Symmetrical, Uninspired layouts
What we can do minimize the
        problems of responsive design

                        A Bit of Good News
•   While WebKit browsers download every stylesheet attached to a page as
    well as fetch every image/element set to display:none, they will only
    display background-image and other assets like @font-face if they
    apply to an applicable @media context (screen-width/max-
    width, portrait/landscape)
•   What does this mean?
•   If we set the mobile layout first (the absence of the capability to read
    media queries is the first media query), then we can progressively layer
    on images and styles that DO NOT apply to mobile and thus WILL NOT be
    loaded at all in that context.
•   For this, CSS sprites and JavaScript based polyfills will be your best friend
CSS Sprites
•   Using CSS sprites will decrease loading time for any site you
    build, especially for mobile.
•   Drag and drop tools like Stitches (http://draeton.github.com/stitches/) and
    Spritecow (http://www.spritecow.com/) take the pain out of creating
    sprites and are FOSS.
•   Creating sprites for specific @media contexts will allow you load only the
    assets necessary for that specific view and will only take a single HTTP
    request.
CSS3 Media query polyfills

•    Using the mobile first approach saves bandwidth for mobile users but will
     make your desktop layout invisible to users without advanced
     browsers(like those who still use IE 8 or less and Windows Phone 7). This
     leaves two choices: an IE conditional stylesheet or a JavaScript to hack in
     support for this missing feature(a polyfill).
•    While there are dozens out there, I recommend
     Respond.js(https://github.com/scottjehl/Respond) because of the excellent support
     for inline media queries.
•   So what happens if someone who needs Respond.js turns off JS?
•   They're presented with the simplified mobile site, but all of the primary
    content is still visible and available. Progressive enhancement and
    graceful degredation-- yay!
Responsive best practices in summary


•   Design and code your CSS with mobile in mind first. Use CSS3 media queries to
    apply desktop layout and styles and make sure to limit resources to their
    appropriate context so they won't all be loaded.
•   Use CSS sprites to group elements by context, which will reduce overhead and
    excess HTTP requests. It's just good karma.
•   Setting elements to display:none will only visually hide an element, not
    prevent it from loading. Choose what you embed on the page carefully.
•   Make content area images fluid by applying width:100%; height: auto but
    don't be afraid to apply a min-width and max-width to prevent distortion.
•   Use a CSS3 media query polyfill to make sure less capable browsers are invited to
    the party but can still access the content if they aren't.
•   Use a meta viewport tag to it prevent scaling issues on iOS devices and to
    maintain precise control over how your site is viewed <meta name="viewport"
    content="width=device-width">
Dedicated Mobile Site/Theme


              The Good                                       The Ugly
•   Can be more useful when implementing a     •   Rely on UA sniffing to redirect users to
    mobile optimized version of a more             the correct domain or serve up the
    complex and varied site.                       correct theme, which is an inexact
•   Can serve scaled versions images and           science. Those who fall through the
    completely remove sections and scripts         cracks can always find a link at the
    not present or needed in the mobile            bottom to go to the mobile site, so this
    version, thereby reducing overhead by as       isn't necessarily a bad thing.
    much as 80% compared to responsive         •   Provides a second site/theme to
    counterparts.                                  maintain.
•   Are ultimately easier to create content
    for because there is no concern of
    mucking up the layout for both the
    desktop and mobile site.
•   Allows for different use cases than the
    desktop site/theme.
Which is Which?

•   Ultimately it is good to have both tricks up your sleeve
    as MO state government sites tend to be complex and
    varied. Sometimes a simple responsive site will work
    wonderfully, sometimes it won't.

•   Luck favors the prepared.
Questions?

sam.minter@oa.mo.gov

More Related Content

What's hot

Design4Drupal Boston 2013 - Bumps in the Road to Responsive
Design4Drupal Boston 2013 - Bumps in the Road to ResponsiveDesign4Drupal Boston 2013 - Bumps in the Road to Responsive
Design4Drupal Boston 2013 - Bumps in the Road to ResponsiveSalem Ghoweri
 
SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013Marc D Anderson
 
Responsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewResponsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewAidan Foster
 
2 bootstrap-3-m1-slides
2 bootstrap-3-m1-slides2 bootstrap-3-m1-slides
2 bootstrap-3-m1-slidesMasterCode.vn
 
Responsive web design ppt
Responsive web design pptResponsive web design ppt
Responsive web design pptaccede16
 
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentations
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentationsUX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentations
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentationsUX Alive Conference
 
University of Portsmouth Library: A practical approach to Responsive Design
University of Portsmouth Library: A practical approach to Responsive Design University of Portsmouth Library: A practical approach to Responsive Design
University of Portsmouth Library: A practical approach to Responsive Design Terminalfour
 
Responsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonResponsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonDhrubaJyoti Dey
 
Specialise or cross-skill
Specialise or cross-skillSpecialise or cross-skill
Specialise or cross-skillRuss Weakley
 
Responsive Design and Information Architecture with Oracle Web Center Content...
Responsive Design and Information Architecture with Oracle Web Center Content...Responsive Design and Information Architecture with Oracle Web Center Content...
Responsive Design and Information Architecture with Oracle Web Center Content...Dmitri Khanine
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignRZasadzinski
 
Cm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learnCm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learnCritical Mass
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web designNate Walton
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issuesNeil Perlin
 
Testing Drupal Site Performance Across Browsers, Geographies and Networks
Testing Drupal Site Performance Across Browsers, Geographies and NetworksTesting Drupal Site Performance Across Browsers, Geographies and Networks
Testing Drupal Site Performance Across Browsers, Geographies and NetworksAcquia
 
A Web for Everyone
A Web for EveryoneA Web for Everyone
A Web for Everyonejameswillweb
 
The Mobile Platform World
The Mobile Platform WorldThe Mobile Platform World
The Mobile Platform WorldMatt Evans
 
The future of the CMS
The future of the CMSThe future of the CMS
The future of the CMSInVision App
 

What's hot (20)

Design4Drupal Boston 2013 - Bumps in the Road to Responsive
Design4Drupal Boston 2013 - Bumps in the Road to ResponsiveDesign4Drupal Boston 2013 - Bumps in the Road to Responsive
Design4Drupal Boston 2013 - Bumps in the Road to Responsive
 
SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013SEF 2014 - Responsive Design in SharePoint 2013
SEF 2014 - Responsive Design in SharePoint 2013
 
Responsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow OverviewResponsive Web Design - Introduction & Workflow Overview
Responsive Web Design - Introduction & Workflow Overview
 
2 bootstrap-3-m1-slides
2 bootstrap-3-m1-slides2 bootstrap-3-m1-slides
2 bootstrap-3-m1-slides
 
Responsive web design ppt
Responsive web design pptResponsive web design ppt
Responsive web design ppt
 
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentations
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentationsUX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentations
UX Alive Conference speaker is Vitaly Friedman (Smashing Magazine) presentations
 
University of Portsmouth Library: A practical approach to Responsive Design
University of Portsmouth Library: A practical approach to Responsive Design University of Portsmouth Library: A practical approach to Responsive Design
University of Portsmouth Library: A practical approach to Responsive Design
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparisonResponsive web design with various grids and frameworks comparison
Responsive web design with various grids and frameworks comparison
 
Specialise or cross-skill
Specialise or cross-skillSpecialise or cross-skill
Specialise or cross-skill
 
Responsive Design and Information Architecture with Oracle Web Center Content...
Responsive Design and Information Architecture with Oracle Web Center Content...Responsive Design and Information Architecture with Oracle Web Center Content...
Responsive Design and Information Architecture with Oracle Web Center Content...
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Cm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learnCm i padwebdev_lunch_learn
Cm i padwebdev_lunch_learn
 
The future of BYU web design
The future of BYU web designThe future of BYU web design
The future of BYU web design
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
 
Testing Drupal Site Performance Across Browsers, Geographies and Networks
Testing Drupal Site Performance Across Browsers, Geographies and NetworksTesting Drupal Site Performance Across Browsers, Geographies and Networks
Testing Drupal Site Performance Across Browsers, Geographies and Networks
 
A Web for Everyone
A Web for EveryoneA Web for Everyone
A Web for Everyone
 
The Mobile Platform World
The Mobile Platform WorldThe Mobile Platform World
The Mobile Platform World
 
Mobile ux sot a and challenges
Mobile ux sot a and challengesMobile ux sot a and challenges
Mobile ux sot a and challenges
 
The future of the CMS
The future of the CMSThe future of the CMS
The future of the CMS
 

Similar to Mobile Best Practices

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignJulia Vi
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereUsing Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereChris Love
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design Mindy McAdams
 
Node.js 101
 Node.js 101 Node.js 101
Node.js 101FITC
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignChris Love
 
FITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedFITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedRami Sayar
 
Responsive Web Design - Why and How
Responsive Web Design - Why and HowResponsive Web Design - Why and How
Responsive Web Design - Why and HowJudi Wunderlich
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteJj Jurgens
 
Talk 03 responsive-web-design
Talk 03 responsive-web-designTalk 03 responsive-web-design
Talk 03 responsive-web-designMonkeyshot
 
Monkeytalk Fall 2012 - Responsive Web Design
Monkeytalk Fall 2012 - Responsive Web DesignMonkeytalk Fall 2012 - Responsive Web Design
Monkeytalk Fall 2012 - Responsive Web DesignSerge Hufkens
 
Rethinking accessibility related best practices for CSS in the modern age
Rethinking accessibility related best practices for CSS in the modern ageRethinking accessibility related best practices for CSS in the modern age
Rethinking accessibility related best practices for CSS in the modern ageshwetank
 
Responsive Web Design: Tips and Tricks
Responsive Web Design: Tips and TricksResponsive Web Design: Tips and Tricks
Responsive Web Design: Tips and TricksGautam Krishnan
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignZoe Gillenwater
 
Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"Sachin Katariya
 
CSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceCSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceZoe Gillenwater
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013Angela Bowman
 
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Frédéric Harper
 
Responsive Design Overview for UB CIT
Responsive Design Overview for UB CITResponsive Design Overview for UB CIT
Responsive Design Overview for UB CITAdrian Roselli
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Chris Love
 

Similar to Mobile Best Practices (20)

Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work EverywhereUsing Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design
 
Node.js 101
 Node.js 101 Node.js 101
Node.js 101
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
 
FITC - Bootstrap Unleashed
FITC - Bootstrap UnleashedFITC - Bootstrap Unleashed
FITC - Bootstrap Unleashed
 
Responsive Web Design - Why and How
Responsive Web Design - Why and HowResponsive Web Design - Why and How
Responsive Web Design - Why and How
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
 
Talk 03 responsive-web-design
Talk 03 responsive-web-designTalk 03 responsive-web-design
Talk 03 responsive-web-design
 
Monkeytalk Fall 2012 - Responsive Web Design
Monkeytalk Fall 2012 - Responsive Web DesignMonkeytalk Fall 2012 - Responsive Web Design
Monkeytalk Fall 2012 - Responsive Web Design
 
Rethinking accessibility related best practices for CSS in the modern age
Rethinking accessibility related best practices for CSS in the modern ageRethinking accessibility related best practices for CSS in the modern age
Rethinking accessibility related best practices for CSS in the modern age
 
Responsive Web Design: Tips and Tricks
Responsive Web Design: Tips and TricksResponsive Web Design: Tips and Tricks
Responsive Web Design: Tips and Tricks
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"
 
CSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceCSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experience
 
Web designtrends 5-29-2013
Web designtrends 5-29-2013Web designtrends 5-29-2013
Web designtrends 5-29-2013
 
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
 
Responsive Design Overview for UB CIT
Responsive Design Overview for UB CITResponsive Design Overview for UB CIT
Responsive Design Overview for UB CIT
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 

Mobile Best Practices

  • 2. Responsive Design • Responsive design is the practice of designing flexible layouts that create a user optimized experience across multiple viewing contexts. • Responsive design is not new. • Responsive design is synonomous with CSS3 Media Queries.
  • 3. CSS3 Media Queries • CSS Media Queries give us a way to control the application of styles based on the presence or absence of specific media features • Not exactly new (media="print/screen/handheld"), but now we can apply logic: o <link rel="stylesheet" href="awesome.css" media="screen and (min-width:500px)" /> o @media only screen and (min-width:480px) and (max- width:767px) and (orientation : landscape) { /* Insert Awesome Style Here */ } • Media queries can be either inline or linked
  • 4. What's so cool about responsive design and what's not? The Good The Ugly • Reduced development time. • Media query support isn't great • Fewer files to maintain. • Unnecessary resource loading • Looks impressive when viewed • Often results in on a desktop. symmetrical, uninspired • Fun to design and develop. layouts. • Earns you instant street cred in • Assumes that individuals browse the same way across devices. the web dev community since it's been a buzzword for several • Can make too many years and running. compromises resulting in both • Endorsed by unicorns. mediocre or bad desktop and mobile sites.
  • 6. Unnecessary Resource Loading • elements set to display:none still load in the background. This includes those rascally bandwidth sucking <img>,<script> driven widgets, <embed>, <object>. • All style sheets linked in a page, even if conditionally not applicable through media queries, will load. • Background images, even if overwritten by another through a perfectly valid cascade, will still load in WebKit based browsers • While we can make images fluid, the size of the embedded images remains the same between layouts. • @font-face web fonts can add overhead and affect performance unless applied carefully
  • 8. What we can do minimize the problems of responsive design A Bit of Good News • While WebKit browsers download every stylesheet attached to a page as well as fetch every image/element set to display:none, they will only display background-image and other assets like @font-face if they apply to an applicable @media context (screen-width/max- width, portrait/landscape) • What does this mean? • If we set the mobile layout first (the absence of the capability to read media queries is the first media query), then we can progressively layer on images and styles that DO NOT apply to mobile and thus WILL NOT be loaded at all in that context. • For this, CSS sprites and JavaScript based polyfills will be your best friend
  • 9. CSS Sprites • Using CSS sprites will decrease loading time for any site you build, especially for mobile. • Drag and drop tools like Stitches (http://draeton.github.com/stitches/) and Spritecow (http://www.spritecow.com/) take the pain out of creating sprites and are FOSS. • Creating sprites for specific @media contexts will allow you load only the assets necessary for that specific view and will only take a single HTTP request.
  • 10. CSS3 Media query polyfills • Using the mobile first approach saves bandwidth for mobile users but will make your desktop layout invisible to users without advanced browsers(like those who still use IE 8 or less and Windows Phone 7). This leaves two choices: an IE conditional stylesheet or a JavaScript to hack in support for this missing feature(a polyfill). • While there are dozens out there, I recommend Respond.js(https://github.com/scottjehl/Respond) because of the excellent support for inline media queries. • So what happens if someone who needs Respond.js turns off JS? • They're presented with the simplified mobile site, but all of the primary content is still visible and available. Progressive enhancement and graceful degredation-- yay!
  • 11. Responsive best practices in summary • Design and code your CSS with mobile in mind first. Use CSS3 media queries to apply desktop layout and styles and make sure to limit resources to their appropriate context so they won't all be loaded. • Use CSS sprites to group elements by context, which will reduce overhead and excess HTTP requests. It's just good karma. • Setting elements to display:none will only visually hide an element, not prevent it from loading. Choose what you embed on the page carefully. • Make content area images fluid by applying width:100%; height: auto but don't be afraid to apply a min-width and max-width to prevent distortion. • Use a CSS3 media query polyfill to make sure less capable browsers are invited to the party but can still access the content if they aren't. • Use a meta viewport tag to it prevent scaling issues on iOS devices and to maintain precise control over how your site is viewed <meta name="viewport" content="width=device-width">
  • 12. Dedicated Mobile Site/Theme The Good The Ugly • Can be more useful when implementing a • Rely on UA sniffing to redirect users to mobile optimized version of a more the correct domain or serve up the complex and varied site. correct theme, which is an inexact • Can serve scaled versions images and science. Those who fall through the completely remove sections and scripts cracks can always find a link at the not present or needed in the mobile bottom to go to the mobile site, so this version, thereby reducing overhead by as isn't necessarily a bad thing. much as 80% compared to responsive • Provides a second site/theme to counterparts. maintain. • Are ultimately easier to create content for because there is no concern of mucking up the layout for both the desktop and mobile site. • Allows for different use cases than the desktop site/theme.
  • 13. Which is Which? • Ultimately it is good to have both tricks up your sleeve as MO state government sites tend to be complex and varied. Sometimes a simple responsive site will work wonderfully, sometimes it won't. • Luck favors the prepared.