gpt4 book ai didi

angularjs - Angular、Chrome - 所有请求都停滞了大约 450 毫秒

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:22:03 25 4
gpt4 key购买 nike

我们有一个 angularJS 应用程序,然后我们将我们的 FE 更新为 angular7.1,现在 chrome 中的每个请求都停滞了大约 450 毫秒,包括静态文件和数据请求。

本地版本的应用没有这个问题

Firefox 和 IE 不会阻止请求。

你有什么想法吗?谢谢。

已使用缓存控制进行测试:无存储、无缓存、必须重新验证

一次只测试一个请求

使用和不使用代理进行了测试

(无法发布图片)

旧的应用程序 chrome 行为: AngularJS behavior image

新的应用 chrome 行为: Angular7 behavior image

新应用 IE 行为: Angular7 IE behavior image

更新:

即使是第一个请求也会停止。瀑布看起来像这样:<强> Waterfall

最佳答案

请阅读link中的以下信息@JonathanHamel 发布的:

A request being queued indicates that:

  • The request was postponed by the rendering engine because it's considered lower priority than critical resources (such as scripts/styles). This often happens with images.
  • The request was put on hold to wait for an unavailable TCP socket that's about to free up.
  • The request was put on hold because the browser only allows six TCP connections per origin on HTTP 1.
  • Time spent making disk cache entries (typically very quick.)

Additionally, Stalled/Blocking is the time the request spent waiting before it could be sent. It can be waiting for any of the reasons described for Queueing. Additionally, this time is inclusive of any time spent in proxy negotiation.

请告诉我们以下哪种情况可能适用于您。

关于angularjs - Angular、Chrome - 所有请求都停滞了大约 450 毫秒,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54348129/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com