How to check if a HTML document is empty via JavaScript without causing layout

welcome to shbcf.ru