PseudoSavant

The Musings of Paul Ellis

  • About me
  • JS 101: Cache your selectors

    javascript-icon.pngOne of the slowest things you can do with JavaScript is work with the DOM. And one of the slowest DOM operations is performing a query to find DOM elements. Caching those queries can have significant performance impacts. Here’s how you do it. Read more

    Filed In: Uncategorized
    January 30, 2014
  • JS 101: Global Variables

    javascript-icon.pngUnderstanding global variables and scope is very important in JavaScript. Misunderstanding what a variable’s scope is can lead odd bugs and broken code. This is made more problematic because the default scope in JavaScript is global. But what is global and how should you use it? Read more

    Filed In: Uncategorized
    January 29, 2014
  • Subscribe via Email

    Enter your email address to receive new posts to this blog in your inbox. I'll never mail anything else. Seriously.

  • Links

    • GitHub
    • Homemarks
  • Recent Posts

    • Meta “When is it stealing?” Inception.
    • Craftsman
© 2026 J. Paul Ellis