使用“传输编码:分块",在浏览器开始渲染之前必须发送多少数据? [英] Using "transfer-encoding: chunked", how much data must be sent before browsers start rendering it?
本文介绍了使用“传输编码:分块",在浏览器开始渲染之前必须发送多少数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有浏览器在开始呈现您通过网络刷新到它的部分 http 响应之前,都会等待一些内容(有时也是一些时间) - 但要等待多少?
解决方案
我今天对此做了一些研究,一个 url 端点接受让我配置块大小和间隔.
<前>Mac:文本/html:图像/jpeg:卷曲 7.24.0 4096 字节火狐 17 1024 字节 1886 字节Chrome 26.0.1410.65 1024 字节 1885 字节Chrome 29.0.1524.0 8 字节 1885 字节Safari 6.0.4 (8536.29.13) 1024 字节整个文件视窗 XP:IE8 256 字节Chrome 27.0.1453.94 1024 字节火狐 21 1024 字节Opera 12.15 128 bytes AND 3s 已经过去Windows 7的IE9 256 字节视窗 8:IE10 4096 字节All browsers wait for some content (and sometimes some amount of time, too) before they start rendering a partial http response you have flushed to it across the network - but how much?
解决方案
I did some research on this today with an url endpoint accepting letting me configure chunk sizes and intervals.
Mac: text/html: image/jpeg: curl 7.24.0 4096 bytes Firefox 17 1024 bytes 1886 bytes Chrome 26.0.1410.65 1024 bytes 1885 bytes Chrome 29.0.1524.0 8 bytes 1885 bytes Safari 6.0.4 (8536.29.13) 1024 bytes whole file Windows XP: IE8 256 bytes Chrome 27.0.1453.94 1024 bytes Firefox 21 1024 bytes Opera 12.15 128 bytes AND 3s have passed Windows 7 IE9 256 bytes Windows 8: IE10 4096 bytes
这篇关于使用“传输编码:分块",在浏览器开始渲染之前必须发送多少数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文