Fixed the asynchronous timing problems caused by early page rendering