奇怪:由标头引起的延迟使其他速度方面相形见绌!如何解读这些速度图表?

发布于 2024-10-09 12:26:23 字数 856 浏览 0 评论 0原文

在各种速度测试网站上,其中 site-perf.com 我发现 header 导致网站加载的延迟相对最大。在其他速度测试图表上,我看到了同样的情况,即:虽然连接、问题、解析、正文都很好,但 header 似乎花费了奇怪的长时间。需要注意的是,.jpg 文件是由 php 脚本生成的非常小的缩略图。 (看看它们的大小:很小!)

在各种试验中,例如下面的两个相隔两周的打印屏幕,我得到了或多或少相同的结果:巨大的黄色条使其他方面造成的延迟相形见绌。

Q1。解读图表:我是否正确解读了这些图片?黄色实际上可能是一个“污染”延迟,其缓慢的加载是由于多种因素综合造成的(缓慢的互联网连接、缓慢的恢复等,并且与图表中的标题没有太大的对比?

排除可能性:如果您尝试在 http 上测试具有类似大小/负载的网站://site-perf.com,您是否得到了与我类似的图表?

是什么导致了黄色:看看这些结果(图片)可能会导致相对较高的值。所看到的百分比,如标题所描述的那样?

线索和补救措施:我可以做什么/尝试,以减少此处的黄色时间损失百分比?

非常感谢+


alt text


PIC2 替代文字

on various speedtest websites, amongst which site-perf.com I see the header causing relatively the largest delay for the website to load. On other speedtest charts i see the same, namely: while connection, ques, resolve, body are all fine, the header seems to take oddly long time. A note to be mentioned is that the .jpg files are very tiny thumbnails that are generated by a php script. (look at the size of them: tiny!)

In various trials, for example the two printscreens below that were set two weeks apart, i have more or less the same result: huge yellow bars dwarfing delays caused by other aspects.

Q1. Interpreting Chart: Am i interpreting these pictures properly at all? Could the yellow be actually a "polluted" delay where its slow load is due to many factors combined (slow internet connection, slow recolve etc, and not so contrasty to be blaimed at the headers in the chart?

Q2. Rule Out Odds: if you try to test your own website with similar size/load at http://site-perf.com, do you get a similar chart as I get?

Q3. Whats Causing Yellow: looking at such results (pictures) what could be causing the relatively higher percentages seen, caused as what is described as header?

Q4. Clues & Remedies: what could I do/try, to reduce the percentage of time lost in yellow here?

Thanks very much +!


PIC1
alt text


PIC2
alt text

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

醉酒的小男人 2024-10-16 12:26:23

最有可能的是,它会将页面 块内发生的所有内容都计算为标题,因此请开始注释掉内容。如果您使用 javascript 预加载大量图像,并将其加载到标头内的

Most likely it's counting everything that happens inside your page's <head> block as headers, so start commenting out things. If you're pre-loading a ton of images with javascript and that's loaded in a <script> tag within the header, then those images' load times will count towards header times. Especially since it looks like you're loading from at least 4 different domains (going by the .com, .es, .de, .ch), and the images coming from those external domains/sites seem to be going rather slowly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文