Flexbox for Responsive Web Design: How to build websites that work on any browser and any device by Harvey Berman
Author:Harvey Berman [Berman, Harvey]
Language: eng
Format: azw3, pdf
Published: 2016-07-16T16:00:00+00:00
Art Direction Performance
You might think that we could get around this problem by employing an “art direction” strategy.
Instead of making the image flexible, you’d think we could use media queries to display a big image on big screens and a small image on small screens. That way, the browser on a smart phone would never need to download a big image. It could download the small image, which would be much faster. Unfortunately, this strategy does not work in modern browsers.
The problem is that modern browsers pre-load images. That is, modern browsers retrieve images in the background, before they act on CSS code. Consider the code that we used earlier to implement an art direction strategy:
HTML
<img class="small-image" src=“small-photo.jpg" />
<img class="big-image" src=“big-photo.jpg" />
Download
Flexbox for Responsive Web Design: How to build websites that work on any browser and any device by Harvey Berman.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.
Content Management | Programming |
User Experience & Usability | User Generated Content |
Web Design | Web Marketing |
Web Services | Website Analytics |
Hello! Python by Anthony Briggs(9911)
The Mikado Method by Ola Ellnestam Daniel Brolund(9775)
Dependency Injection in .NET by Mark Seemann(9336)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7775)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Svelte with Test-Driven Development by Daniel Irvine(7110)
Test-Driven Development with PHP 8 by Rainier Sarabia(6836)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(6701)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6532)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6409)
Web Development with Django by Ben Shaw Saurabh Badhwar(6170)
React Application Architecture for Production by Alan Alickovic(5888)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5806)
Kotlin in Action by Dmitry Jemerov(5061)
Audition by Ryu Murakami(4583)
Software Architecture for Web Developers by Mihaela Roxana Ghidersa(4424)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4315)
Accelerating Server-Side Development with Fastify by Manuel Spigolon Maksim Sinik & Matteo Collina(4274)
Functional Programming in JavaScript by Mantyla Dan(4037)
