By bloid
via blogs.sun.com
Published: Jan 29 2008 / 04:01
We have a function called hasClassName(el, cls) that checks whether a given DOM element has a given class. More and more, we're relying heavily on this function, and on certain pages it can run thousands of times. In these situations a little performance tuning can go a long way
Tweet
SaveShareSend
Tags: javascript



Add your comment