Joey@still_Learning.invalid
8/29/2015 11:12:00 PM
I'm attempting to optimize a lengthy ECMA script for speed. Please
pardon my ignorance...
I have multiple instances of document.getElementById('id').checked or
value.
Q1: When running the script, does it search through a table for the
address, or does it only do it once during compilation?
Q2. Moot if Q1 answer is 'only once.' If I declare a global variable
as 'var xxx = document.getElementById('id'),' and use it throughout
the script as 'xxx.value or xxx.checked,' does this improve
performance?
Thanks in advance for helping and not beating me up.
--
Joey