Speed Up JavaScript Object Detection

Dean Edwards has a great JavaScript tip that will show you how to Speed Up Object Detection.  New theory must be an outstanding tip if it’s the very first on a supposedly recurring series! This is valuable because of all the irregularities that one finds even today in browsers (and not only Internet Explorer), which force us to create different branches for different browsers. The particular tip that Edwards is showing us today with the help of code snippets within the article allows us to perform object detection only one time when we call addEvent for instance, rather than every time we call it.