Generalized page load check (via CSS selector) function.