IE - 第一个Ajax请求等待更长的时间 [英] IE - First Ajax request waiting for a longer period of time

查看:136
本文介绍了IE - 第一个Ajax请求等待更长的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hello All,

Hello All,


我们使用angularjs开发了单页应用程序(SPA)。由于这是SPA,我们使用客户端路由在页面之间导航。在应用程序中有一个特定的部分,其中发生了25个以上的ajax调用。现在,问题
是用户在应用程序的任何位置导航到此页面时,平均需要25秒才能在IE中加载页面,而在chrome和其他浏览器中它可以正常工作。

We have developed an Single Page Application(SPA) using angularjs. As this is an SPA, we have used client side routing for navigating between pages. In the application there is a particular section in which there 25+ ajax calls happening. Now, the issue is whenever a user navigates to this page anywhere from the application, It takes 25 seconds on an average to load the page in IE whereas in chrome and other browsers it works properly.


经过调查,我们发现在IE浏览此页面时,第一个服务请求等待15秒以上。如果此服务的响应正确,则后续请求的响应速度非常快,一切正常。

Upon investigating, we found that in IE whenever navigating to this page the first service request is waiting for 15+ seconds. If this service’s responded correctly then the subsequent request’s response are very fast and everything works properly.


现在,请问为什么IE需要时间来点击服务器的第一个请求?

Now, Could any please tell why IE is taking time to hit the server for the first request?


我附上了截图供您参考。在屏幕截图中,您可以清楚地看到请求的开始持续时间约为15秒。

I have attached screenshot for your reference. In the screenshot you can clearly see the start duration of the request is approximately 15 seconds.


请帮助我们解决此问题,因为这是一个关键业务问题。

Please help us to resolve this issue as this is a business critical issue.


注意:我们正在使用https连接来处理我们的请求和响应。

Note: We are using https connection for our request and response.

推荐答案

你好btkarthick ,

Hi btkarthick,

这可能是IE中与您使用Head方法相关的错误;请参阅
https: //connect.microsoft.com/IE/feedback/details/1023203/xhr-readystate-done-delay-on-head-request

This may be a bug in IE related to your use of the Head method; see https://connect.microsoft.com/IE/feedback/details/1023203/xhr-readystate-done-delay-on-head-request

最诚挚的问候,

Jean


这篇关于IE - 第一个Ajax请求等待更长的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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