it’s alright to put it in any position for my level of JS. Actually I hear about the position and sequence of loading JS will have some influence on rendering performance and some logic.
Navigating through HTML is a tough work, but a JS library called
jQuery could achieve this without too much burden.
context means searching action will happen only in given scope, which shrink our filter base and easier for targeting a specified tag.
But actually it’s not that much, please be modest JS developers.
I’d rather pay more attention on