网络请求之间经过的时间是什么意思? [英] What does the time elapsed between network requests mean?

查看:156
本文介绍了网络请求之间经过的时间是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以看到第二个请求在开始后784毫秒开始.我想知道为什么该请求开始于784ms而不是741ms(直接在第一个请求之后)开始?

As you can see the second request starts 784ms after the beginning. I wonder why that request starts at 784ms instead of 741ms (directly after the first one)?

在第一个请求和第二个请求之间的43毫秒内会发生什么?没有指示符表明存在阻止请求.

What happens in the 43ms in between the first and second request? There is no indicator showing that there is a blocking request.

推荐答案

两个请求之间的43毫秒表示解析时间. IE.这是处理对请求的页面URL的请求并查找需要加载的嵌入式资源(如图像,JavaScript等)所需的时间.

The 43ms between the two requests indicate the parsing time. I.e. this is the time needed to process the request to the page URL you requested and find embedded resources like images, JavaScripts, etc., which need to be loaded.

因此,第一个请求和第二个请求之间总会有间隙.

So there will always be a gap between the first request and the second.

对其他资源(如CSS文件)的请求也是如此.下载后,首先需要解释其内容,以了解其包含的其他资源,例如图片,网络字体或其他CSS文件.

The same happens for requests to other resources like CSS files. Their contents first need to be interpreted after their download to know the other resources they include like e.g. images, web fonts or other CSS files.

这篇关于网络请求之间经过的时间是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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