Addy Osmani's Blog, page 7
September 26, 2013
Tools for image optimization
As we saw a few weeks ago, the weight of an average web page is now almost 1.5MB (median ~1MB), with > 50% of this being images. It’s a harsh reminder that many of our pages on the web are … Continue reading →
Published on September 26, 2013 10:19
September 25, 2013
A whirlwind tour of Web Components with Polymer
In this quick video, I walk through using Web Components with Polymer covering: custom elements, templates, Shadow DOM and HTML Imports. Note: You might also find the new Yeoman generator for Polymer useful as well as Eric Bidelman’s regularly updated … Continue reading →
Published on September 25, 2013 14:00
August 29, 2013
Visualising JavaScript Processing Over Time With DevTools Flame Charts
In this quick video, I walk through how to effectively use DevTools Flame Charts for visually representing your app’s JavaScript processing over time. This can be useful if you’re concerned it may be suffering from particularly long function executions and … Continue reading →
Published on August 29, 2013 15:03
August 27, 2013
Generate multi-resolution images for srcset with Grunt
As Mat Marquis recently summarized on SmashingMag, the srcset attribute allows developers to specify a list of sources for an image that are delivered depending on the pixel density of a user’s screen. An example of how srcset may be … Continue reading →
Published on August 27, 2013 06:29
August 26, 2013
Traceur-TodoMVC – a Backbone.js app written with ES6
I’m pleased to present a re-write of the Backbone TodoMVC app using ECMAScript 6 features such as classes, modules and fat-arrow syntax. Check out the literate version of the source code as we’ve filled it with helpful comments. The example … Continue reading →
Published on August 26, 2013 07:17
August 25, 2013
Release the Kraken! Announcing Yeoman 1.0
Last week, I had the pleasure of ‘officially’ releasing Yeoman 1.0 live at BrazilJS. Our core team (incl. Paul, Sindre, Pascal and Stephen) as well as our contributors put a great deal of love and effort into the project over … Continue reading →
Published on August 25, 2013 11:47
August 20, 2013
Detecting Critical CSS For Above-the-Fold Content With Paul Kinlan (Video)
In this video, Paul and I demo a new experimental bookmarklet he wrote for detecting critical CSS for above the fold content. External CSS stylesheets are render-blocking, meaning the browser won’t paint content to the screen until all of your … Continue reading →
Published on August 20, 2013 14:35
August 17, 2013
Tracking ECMAScript 6 Support
ECMAScript 6 is being progressively implemented by browser vendors over time and as such there is no ETA on it being available in all environments. Whilst specs and implementations continue to mature, you may find the below resources helpful in … Continue reading →
Published on August 17, 2013 12:32
July 30, 2013
Checking in front-end dependencies
Package management is an important and evolving area in front-end development. It’s also a contentious one with some favoring Bower, others preferring npm and Browserify and a number remaining undecided about the true benefits of these tools. Regardless of the … Continue reading →
Published on July 30, 2013 05:11
July 23, 2013
Making Maven Grunt.
Introduction Developers working in agencies often tell us that they want to be able to use modern front-end tooling in their workflow. One set of options this manifests as is using Grunt for their build tasks (instead of Ant, bash … Continue reading →
Published on July 23, 2013 07:37