Uncategorized

SXSW: get out the vote

I submitted a proposal for SXSW Interactive: Even Faster Web Sites. SXSW is in Austin, March 13-17, 2009. It’s a great conference with a wide variety of content. John Resig recently announced two talk proposals. Both look great. In the same way, I hope to add a bit more technical content to the conference. I did a book reading last year that was very well attended, so I think there are a significant number of developers attending the conference. This year I hope to relay more techniques for making web pages (especially Web 2.0 pages) faster. The way SXSW works, talks are selected based on votes. If you think it would be good for SXSW, please add a comment by August 29 in support of my talk.

Uncategorized

Comments (2)

Permalink

Firebug Working Group meeting

This week I hosted the Firebug Working Group meeting at Google. The goal of the Firebug Working Group is to provide an organization for the many volunteers contributing to the Firebug project. Now that Mozilla is dedicating resources to Firebug, I have great hopes that Firebug development will continue at a quicker pace. All three of the Mozilla members were present: John Resig, Rob Campbell, and Jan Odvarko (by phone). Also present or dialed in were John J. Barton, Doug Crockford, Tony Gentilcore, Kevin Hakman, Kyle Scholz, Dion Almaer, Mike Wilcox, Eric Promislow, Stoyan Stefanov, and myself.

Highlights: Firebug 1.2 is nearing final beta. After testing it’ll be promoted to stable. The main focus for the next release is going to be performance, stability, and testing. Some new features are on the todo list, such as adding new CSS rules, viewing bound DOM event handlers, and exporting CSS changes. More details are available in my notes from the meeting. It’s very exciting to have Mozilla more involved, and bodes well for the future of Firebug.

Uncategorized

Comments (1)

Permalink

Firebug Lite 1.2 Released

Today Firebug Lite 1.2 was released. This new version was built by Azer Koçulu, creator of pi.debugger. Azer joined the Firebug Working Group, morphed the GUI to look like Firebug, and added it to the Firebug code base.

Firebug Lite is a subset of Firebug that can be used in IE, Opera, and Safari. The previous version provided console.log functionality. In Firebug Lite 1.2, Azer added the ability to inspect DOM elements, track XHRs, and navigate HTML, CSS, and JavaScript. You can embed it in your pages and enable debugging. I prefer creating a Firebug Lite bookmarklet that I can launch on any web page. Instructions and more information are available on the main Firebug Lite page.

I was able to demo this at OSCON today thanks to the folks from Mozilla who are now working on Firebug. As John Resig posted last week, he, Rob Campbell, and Jan Odvarko are going to be focusing on Firebug. Just one week later the benefits from their involvement are already being seen, as Rob quickly got the updates hosted on getfirebug.com. The roadmap for Firebug will be discussed at the upcoming Firefox Summit and the next Firebug Working Group meeting at Google in early August. I’ve been working with Azer testing his releases over the last month. It’s great to have Firebug functionality when I drop into IE. Thanks Azer and Rob!

Uncategorized

Comments (9)

Permalink

See You at OSCON

I’ll be up at OSCON in Portland this week. I’m speaking Thursday 2:35pm on Even Faster Web Sites, the next set of performance best practices I’m working on. I’m signing books Thursday 12:20pm at the Powells table, and I’ll be in the Google booth Thursday 4pm. At the Google booth I’ll be doing performance consulting - anyone can stop by and ask questions about their web site’s performance, or we can just fire up a packet sniffer and YSlow to see what jumps out.

There are a lot of great talks this year. Here are a few I’ve earmarked:

If you’re going to OSCON please come by and say Hi.

Uncategorized

Comments (0)

Permalink

YUI’s Combo Handler CDN Service

Eric Miraglia wrote a post yesterday called Combo Handler Service Available for Yahoo-hosted JS. One of the advantages of YUI over other JavaScript frameworks is its à la carte capabilities. Developers can choose just the parts they want, rather than being saddled with the whole kit and caboodle. It’s great to download fewer bytes, but choosing a subset of modules results in downloading multiple external scripts, something that’s bad for performance and costs YSlow points. That’s where Eric’s post comes in.

The Combo Handler Service lets developers choose a customized subset of modules and have them served as a single HTTP request from Yahoo!’s worldwide CDN for faster delivery. Each module (file) is listed in the querystring. As an example, Eric shows that loading the YUI Rich Text Editor the old way would require downloading six separate scripts:

<script src=”http://yui.yahooapis.com/2.5.2/build/yahoo-dom-event/yahoo-dom-event.js”>
</script>
<script src=”http://yui.yahooapis.com/2.5.2/build/container/container_core-min.js”>
</script>
<script src=”http://yui.yahooapis.com/2.5.2/build/menu/menu-min.js”>
</script>
<script src=”http://yui.yahooapis.com/2.5.2/build/element/element-beta-min.js”">
</script>
<script src=”http://yui.yahooapis.com/2.5.2/build/button/button-min.js”>
</script>
<script src=”http://yui.yahooapis.com/2.5.2/build/editor/editor-beta-min.js”>
</script>

This is reduced to a single HTTP request by using the Combo Handler:

<script src=”http://yui.yahooapis.com/combo?2.5.2/build/yahoo-dom-event/yahoo-dom-event.js&
2.5.2/build/container/container_core-min.js&2.5.2/build/menu/menu-min.js&
2.5.2/build/element/element-beta-min.js&2.5.2/build/button/button-min.js&
2.5.2/build/editor/editor-beta-min.js”>
</script>

It’s important that developers using Combo Handler pay particular attention that they get the dependency order correct. I created the YUI Combo Handler: preserving order test page to show what happens if prerequisites are listed incorrectly. In this page instead of putting editor-beta-min.js as the last querystring parameter, I make it the first parameter. Not surprisingly, the page produces JavaScript errors. It would be great if Combo Handler ensured that the response had all the necessary prerequisites in the right order. With this enhancement the single request would be much simpler:

<script src=”http://yui.yahooapis.com/combo?2.5.2/build/editor/editor-beta-min.js”>
</script>

This is a great announcement. Web developers using YUI can now get a customized rollup hosted on Yahoo!’s CDN! This is the best of all worlds - reduced download size, fewer HTTP requests, and CDN hosting. I encourage other JavaScript frameworks to adopt YUI’s à la carte flexibility. Perhaps Google Ajax Libraries could then support features to serve up customized builds similar to what Combo Handler does. Well done.

HTTP
Performance
Tools
Uncategorized
YSlow

Comments (1)

Permalink

Women are Geeks (too!)

As a father of three girls I watch for indicators of the level to which women are represented in the tech community. I decided to write a blog post about this while sitting at the ACM Awards Banquet a week ago. My experience coming from tech companies, including Yahoo! and Google, is that women are incredibly, and sadly, underrepresented in engineering. That’s why I was pleased to see that so many of the ACM award winners were women. I generated a chart showing the number of woman ACM award winners over the last 30 years. It’s a small sample size, so I plotted the moving average to smooth out the spikes.

ACM Woman Awardees

I’m happy to see the number of woman awardees is increasing, with a real jump in the last two years. But I have two reservations. The percentage of woman winners is low, averaging only 5% over the last 30 years with a spike to 10% in the last two years. Also, most ACM award winners come from academia. I’m concerned that an analysis of similar award winners from industry would reveal even lower percentages for women. Continue Reading »

Uncategorized

Comments (0)

Permalink

Velocity Product Launch: KITE 2.0

A few product launches are being announced at Velocity. I was able to get an early look at KITE 2.0 from Keynote. I’ve worked with Keynote for years. They have a strong platform of services for measuring web site availability and performance. KITE, Keynote’s Internet Testing Environment, is the customer tool for creating test scripts. KITE 2.0 has many new features that caught my eye:

  • Test scripts can include taking actions based on DOM events, such as the creation of a DOM element or even the contents of a DOM element matching a specified pattern.
  • An intuitive HTTP profile is displayed in the client app.
  • Tests can be executed at five cites worldwide on the Keynote backbone.
  • It’s free! You don’t need to be a Keynote customer to use it.

KITE 2.0 is available through an early adopters program. There are some features I’d like to see added: the ability to execute a test script multiple times, exporting test results measured from my client, and getting time measurements that correspond to certain events in the page. I recommend trying this early version if you’re looking for a tool to record and execute web page test scripts.

Uncategorized

Comments (4)

Permalink

Andy Hopper: Computing for the Future of the Planet

I recently hosted Andy Hopper (University of Cambridge) at Google to deliver his talk on Computing for the Future of the Planet (YouTube video). He covered a variety of areas that ranged from practical deployment issues that should be addressed today to futuristic concepts. The beginning of the talk, the part that was of most interest to me, was about energy efficient computing: adaptive datacentres and a “virtual battery” (moving computing tasks to where energy is available). Power consumption is certainly a key focus for Google and other large web companies. It’s intriguing to think about shifting data and processes in real time based on the cost of energy.

Continue Reading »

Uncategorized

Comments (0)

Permalink

Google AJAX Libraries API

Today Dion Almaer announced the Google AJAX Libraries API. This is a great resource for developers using any of the popular JavaScript frameworks including Prototype, Script.aculo.us, jQuery, Dojo, and MooTools. Rather than downloading it to your own server and hosting it from there, you can request your preferred JavaScript library from ajax.googleapis.com:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">
</script>

The greatest benefit in my opinion is that any developer can leverage Google’s CDN to deliver the bulk of their JavaScript. From YSlow and my book I received a lot of feedback that Rule 2: Use a CDN was out of reach for many developers. I use jQuery in one of my personal projects and serve it on my hosted web site from one geographic location. Ouch. Being able to move that 21K closer to my users is great.

Continue Reading »

Uncategorized

Comments (8)

Permalink

Split the Initial Payload

[This post is based on a chapter from my next book, a follow-up to High Performance Web Sites containing more best practices for faster web sites.]

The growing adoption of Ajax and DHTML means today’s web pages have more JavaScript than ever before. The average top ten U.S. web site[1] contains 252K of JavaScript. JavaScript slows pages down. When the browser starts downloading or executing JavaScript it won’t start any other parallel downloads. Also, anything below an external script is not rendered until the script is completely downloaded and executed. Even in the case where external scripts are cached the execution time can still slow down the user experience and thwart progressive rendering.

Every line of JavaScript code matters to a fast loading page. And yet, as shown in Table 1, the average top ten U.S. web site only executes 25% of the JavaScript functionality before the onload event.[2] Why track this relative to the onload event? Any code needed after the onload event (for dropdown menus, Ajax requests, etc.) could be downloaded later, making the initial page render more quickly.

Continue Reading »

Uncategorized

Comments (10)

Permalink