move document load hash check to end and in .ready