Fixed dom content load check