You can try a lot of things, but IE is optimized for extracting elements by identifier, nothing else (it puts the identifiers of elements in a hash table under covers).
If you create your page using any server technology, you can define a list of elements, and then output a JavaScript array from the identifiers of these elements, and then when the page loads, you can go through this array and collect your elements by ID.
, ASP.NET , - . , jmbledsoe, , , , .