在.innerHTML = xmlhttp.responseText;之后短暂的延迟是否正常? [英] Is it normal to have a short delay after .innerHTML = xmlhttp.responseText;?

查看:58
本文介绍了在.innerHTML = xmlhttp.responseText;之后短暂的延迟是否正常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在.innerHTML = xmlhttp.responseText;之后短暂延迟是否正常??

Is it normal to have a short delay after .innerHTML = xmlhttp.responseText; ?

延迟接近1秒.在xmlhttp.readyState == 4之后.

使用firefox 3.0.10

推荐答案

不,这听起来像是您的响应格式错误或响应较大.

No, this sounds like you may have some malformed or large response.

浏览器将解析响应文本并在DOM中构造节点.在Firefox中,这通常非常快.

The browser will parse the responsetext and construct nodes in the DOM. This is typically very fast in Firefox.

也许您可以多描述一下您的情况和响应文本,这将有助于我们进行调试.

Perhaps you could describe your circumstances and response text a little more and it would help us debug.

这篇关于在.innerHTML = xmlhttp.responseText;之后短暂的延迟是否正常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆