dbushell/Socialite — Issue #1: Suggestion: Use .querySelectorAll() over .getElementsByClassName
Author: i-like-robots
Created: 2011-12-06 13:03:22+00:00
State: open

It may be useful to add an extra argument to the `getElements` method for a tag name. This would enable the use of the more performant with `.querySelectorAll()`.

E.G. `context.querySelectorAll(tagName + '.' + className);`

In my experience the fall back for this may also be faster.

JSPerf: http://jsperf.com/the-speed-of-selectors-with-tag-names/2