A version that almost works, but fails for long-loading pages like baidu.