Quick Performance Tip: jQuery and addClass

Abstractions are helpful and dangerous. But the more we know about a library’s internals, the less danger we’ll be in later. Here’s an issue I ran into where I had assumed that jQuery would be optimized for this case, but it wasn’t. I’ll go over my bad assumption and how to workaround it.

As of jQuery 1.3.2, adding multiple HTML classes to an element using jQuery’s addClass method will add them one at

Posted at 10pm on 06/30/09 | no comments | Filed Under: JavaScript read on

Adobe Reverts Flex Store to Open Web

A few weeks ago in the process of doing some research about the Adobe Flex platform, I came across their online store, a dogfooded full page application using Flex.

This morning I went back to the same URL to find a site that was no longer using the full page Flex application I had been expecting. Instead it was now using native Open Web technology.

Naturally, my first assumption was that I had hallucinated the

Posted at 12pm on 05/23/09 | no comments | Filed Under: Reviews read on

Performance Caveat with jQuery Selectors and Live Events

Prerequisite: Knowledge/Experience with jQuery Live Events (new in jQuery 1.3), and the concept of Event Delegation.

When developing on the front end, it’s easy to prioritize correctness over performance. Performance is the step child that gets lost while you’re pulling your hair out worrying about cross browser compatibility. It’s very important to regularly benchmark your JavaScript code, using a profiler or some form of benchmarking code paired with a cross browser

Posted at 7am on 05/08/09 | 5 comments | Filed Under: JavaScript read on
  • About Zach

    Zach Leatherman (zachleat) is a User Interface Programmer with a degree in Computer Engineering. He enjoys watching and playing soccer, piano, finding patterns in both people and machines, movies that make him think or feel, ordinary things in faraway places, and writing about himself in the third person.

    Zach is on Gmail, Google Talk (zachleatherman@gmail.com), AIM (zachleatherman), Twitter, Friendfeed, Facebook, Netflix, delicious, Google Reader, YouTube, Linked In, StackOverflow, and 43 Things, but not all simultaneously and certainly not frequently.

    Zach is no longer on Yahoo, MSN (zach_leatherman@hotmail.com), or MySpace.

    Zach trusts his spam filters. He's had his e-mail in plaintext here since he started this website, so that you have an easy way to contact him. Feel free to do so, at your leisure.


  • This is a blog about web development, not just as a commercial item that can be upgraded with another blade, or a workout that can be shortened by one minute. It is something that empowers people to share information on the world wide web, to collaborate in ways that weren't possible before. People are changing the world from their own living rooms. How are you contributing?

    My Bust

    This blog is written by Zach Leatherman (zachleat).