I'm tired of writing and reading getElementByIdand getElementsByTagName... complicates programming for me.
So, I want to rename them. I want them to be getId, getTagsand getClasses.
This is the micro library I work for. How can I get this result with minimal CPU usage?
At least var doc = document;it was easy.
Krupp source
share