Restrict querySelectorAll usage to just the minimal section of the DOM