Jump Start Responsive Web Design by Craig Sharkie Andrew Fisher
Author:Craig Sharkie, Andrew Fisher [Sharkie, Craig]
Language: eng
Format: epub, mobi, pdf
ISBN: 9780987332165
Publisher: SitePoint Pty. Ltd.
Published: 2013-03-25T16:00:00+00:00
Adapting Our Example
Ahead, the road remains rocky for adaptive images. While srcset has entered draft status with the W3C, the document itself points out that “(i)mplementors should be aware that this specification is not stable.” This warning shouldn’t stop us from using the new attribute, being aimed at browser manufacturers, but it means we need to be wary. Our best path forward is to rely on the W3C while adding as little code as possible.
Despite the endorsement from Apple, even Safari is yet to support srcset, so we’ll need to shim browsers as we did with our JavaScript picture polyfill.
To give our code the best chance of surviving beyond the polyfill, though, we’ll need to ensure that—unlike Picturefill—we use only semantic elements and syntax. With that caveat, removing the polyfill will be much easier and while it’s in place, we’ll get a better picture of the attribute’s future.
Let’s look at our Web Directions South example again in Figure 3.6, and apply srcset to the speaker avatars. We’ll use Boris Smus’s srcset-polyfill to help us past the problems of browser support as it ticks the boxes for a small footprint and reliance on the semantics from the draft specification.
Download
Jump Start Responsive Web Design by Craig Sharkie Andrew Fisher.epub
Jump Start Responsive Web Design by Craig Sharkie Andrew Fisher.mobi
Jump Start Responsive Web Design by Craig Sharkie Andrew Fisher.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
ActiveX | ASP.NET |
Cold Fusion | CSS |
DHTML | Java Server Pages |
JavaScript | PHP |
Python | Ruby |
XSL |
Hello! Python by Anthony Briggs(9924)
The Mikado Method by Ola Ellnestam Daniel Brolund(9784)
Dependency Injection in .NET by Mark Seemann(9347)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7787)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7566)
Svelte with Test-Driven Development by Daniel Irvine(7225)
Test-Driven Development with PHP 8 by Rainier Sarabia(6954)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6822)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6538)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6422)
Web Development with Django by Ben Shaw Saurabh Badhwar(6286)
React Application Architecture for Production by Alan Alickovic(6005)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5813)
Kotlin in Action by Dmitry Jemerov(5072)
Audition by Ryu Murakami(4589)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4485)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4332)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4322)
Functional Programming in JavaScript by Mantyla Dan(4042)
