We'll cover how to design a responsive website responsibly - How you can delivery a consistent user experience to users on small and large screen devices and how to decrease your website's page size quickly and effectively to make your website load fast even on slow internet connections. We'll cover how to use the newest HTML5 specifications even on browsers that do not have native support such as the <picture> element. We'll discuss how HTTP/2 changes things and also the new service worker specification and what that means.
3. Responsive Design
● An approach
● Optimal user experience
● Content first!
● What do you users care about?
4. Responsive Design
● Platform agnostic
● 94.64% + all mobile
● Fluid user interface
● Watches, phones, e-readers, tablets, laptops, monitors, etc
● Two orientations for most
24. Why do we care?
● 50% of traffic is through mobile device
● 80% of worldwide users on 3G or worse
● 60% of US users 3G or worse
● 50% of mobile device traffic is wifi
27. Decreasing image load times
● TinyPNG, ImageOptim, 100 others
● Data URI - 95.3%
● SVG - 94.67%
28. Grunticon
● SVG data uri - 21 images 20 KB gz 4.5 KB
● PNG data uri - 21 images 23.2 KB gz 11.1 KB
● PNG images - 21 images 307 bytes plus image size
● Grunt task or web based
29. Decreasing image load times
● Picture element - 63.29% - Demo
○ Browser chooses based on screen size
● Img with srcset - 66.09% - Demo
○ Browser chooses best fit