Tag Archives: DOM

  • Live vs. Static Node Lists

    Sep 28 2011

    2 Comment(s)

    A little while ago, I was working on an application where I wanted to cache collections of elements to save on DOM traversals / improve performance. The problem with caching a collection of elements is that you’ll, in most cases, store a static node list. Thus, when new elements are introduced to the DOM, that [...]

  • Caching within your Javascript Applications

    Jun 8 2011

    0 Comment(s)

    It’s important to remember that writing good Javascript includes writing scalable Javascript. Little optimizations can always be implemented and best practices are good to keep in mind. Training yourself to write code like this can be a bit tasking but I promise, you’ll really enjoy doing things like caching and optimizing selectors once you’ve begun. [...]