Javascript

Javascript (ECMA Script, JScript)

Javascript performance: document.getElementById versus document.querySelector and document.querySelectorAll

I’ve been lucky enough to be working on an internal project the last few weeks which has a known set of modern browsers as the target audience. This means i’ve been able to ignore some of the older design/development issues. I am really liking document.querySelector and document.querySelectorAll which are relatively modern (well, to me at More >