The Importance of Caching jQuery Selections
As the head of Developer Relations for the jQuery Foundation, Adam Sontag has a lot to say about jQuery. In this screencast, Adam shows you how caching DOM selections can help you write DRYer, more efficient code and begin to change the way you think about writing applications with jQuery.
- Check out the before code here and the after code here.