Fix bug where dom ready state was not firing unless there were slow resources