Wouldn't it be good to have the previous check in the document.ready?