A bit about me… • Technical Architect at Beamly • Author of Beginning Responsive Design • Regular contributor to open source, including SimpleStateManager, HTML5 Boilerplate, Echo.js, Gitissu.es, DigitalOceanCLI, Doccy among many projects
Bobby Anderson - Everyday Designer “Content is king, it always has been and always will be. Content is why users visit your site, subscribe to your newsletters and follow you on social media. Content is the single most important aspect of your website...”
Example: Different content priorities for a restaurant Small devices Large devices Phone number Atmosphere Directions Menu Booking Booking Menu Phone number Atmosphere Directions
Average page weight has been increasing year on year Average Page Size (kB) 0 550 1100 1650 2200 March 2012 March 2013 March 2014 March 2015 Data from http://httparchive.org/interesting.php
The average time to start rendering is also increasing Render start (ms) 0 775 1550 2325 3100 August 2013 March 2014 August 2014 March 2015 Data from http://httparchive.org/interesting.php
• Amazon found every 100ms delay in loading a page cost them 1% in sales • Google found an extra 500ms delay in loading of search results decreased traffic by 20%
var button = document.querySelector('button') var clicked = criticaljs.deferred(button, ‘click’); var ev = function(){ alert(‘clicked’); } if (clicked) { ev.bind(button)(); } button.addEventListener(ev); Check if the event has been triggered Handle deferred user interaction Attach the real interaction
A special thanks goes out to to Charlie Fielding, Kate Montgomery, Phil Nash, Callum Macrae and everyone at Beamly who helped me with putting these slides together.