基于文本的浏览器能减少网络流量吗?

毫无疑问,如今的网页内容丰富,需要更多的带宽才能完全加载,但使用基于文本的浏览器而不是基于GUI的浏览器是否会对减少网络流量产生显著影响?今天的超级用户问答帖子回答了一位好奇的读者的问题。...

基于文本的浏览器能减少网络流量吗?

毫无疑问,如今的网页内容丰富,需要更多的带宽才能完全加载,但使用基于文本的浏览器而不是基于GUI的浏览器是否会对减少网络流量产生显著影响?今天的超级用户问答帖子回答了一位好奇的读者的问题。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

Lynx浏览器截图由维基百科提供。

问题

超级用户读者Paulb想知道基于文本的浏览器是否真的能减少网络流量:

Do text-based browsers such as Lynx, Links, and ELinks c***ume less bandwidth than GUI-based browsers like Firefox, Chrome, and Internet Explorer?

I am guessing that there is no reduction in traffic. My rationale for this is that I think a text-based browser downloads the entire page as it is offered by the server. Any streamlining or reduction of page widgetry is done locally.

Maybe there is some reduction in traffic as most text-based browsers will not execute page scripts or flash files, which might cause more traffic.

基于文本的浏览器能否在减少网络流量方面起到显著的作用?

答案

超级用户贡献者gronostaj为我们提供了答案:

The web server does not send the entire website, but documents that browsers request. For example, when you access google.com, the browser queries the web server for the document google.com. The web server processes the request and sends back some HTML code.

Then the browser checks what the web server has sent. In this case, it is an HTML webpage, so it parses the document and looks for referenced scripts, style sheets, images, fonts, etc.

At this stage, the browser has finished downloading the original document, but has still not downloaded the referenced documents. It can choose to do so or skip downloading them. Regular browsers will try to download all referenced documents for the best viewing experience. If you have an ad blocker (like Adblock Plus) or a privacy plugin (like Ghostery or NoScript), then it may block some resources too.

Then the browser downloads the referenced documents one by one, each time asking the web server explicitly for a single resource. In our Google example, the browser will find the following references (just to name a few of them):

  • https://www.google.com/images/srpr/logo11w.png (Google Logo)
  • https://www.google.com/textinputassistant/tia.png (Keyboard Icon)
  • https://ssl.gstatic.com/gb/images/i1_3d265689.png (Some combined images, a trick used to reduce the number of browser requests.)

The actual files may be different for different users since browsers and sessi*** may change over time. Text-based browsers do not download images, Flash files, HTML5 video, etc., so they download less data.

@NathanO**an makes a good point in the comments. Sometimes **all images are embedded directly in HTML documents and in those cases, downloading them cannot be avoided. This is another trick used to reduce the number of requests. They are very **all though, otherwise the overhead of encoding a binary file in base64 is too big. There are few such images on google.com (base64 encoded size/decoded size):

  • 19×11 pixel Keyboard Icon (106 Bytes/76 Bytes)
  • 28×38 pixel Microphone Icon (334 Bytes/248 Bytes)
  • 1×1 pixel Transparent GIF (62 Bytes/43 Bytes) It shows up in Google Chrome’s Dev Tools Resources tab, but I could not find it in the source code (probably added later with JavaScript).
  • 1×1 pixel Corrupted GIF file that appears twice. (34 Bytes/23 Bytes) Its purpose is a mystery to me.

有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

  • 发表于 2021-04-11 06:33
  • 阅读 ( 199 )
  • 分类:互联网

你可能感兴趣的文章

i2p与tor与vpn:哪个更安全?

...个常见的缩写词会被到处乱扔。你可能遇到过隐私和匿名浏览器。vpn经常出现在主流媒体的文章中。还有另一个选择需要考虑:I2P。 ...

  • 发布于 2021-03-14 10:13
  • 阅读 ( 497 )

如何安全匿名地访问黑暗网络

... 那不是真的。即使你使用Tor浏览器,你的流量仍然可以被任何有足够时间和专业知识的人(例如,FBI!)追踪到你。 ...

  • 发布于 2021-03-18 08:38
  • 阅读 ( 294 )

6种方法可防止tor出口节点受损

... 但是如果您使用Tor浏览器和Tor网络作为clearnet的代理,它会变得更复杂一些。你的流量必须通过一个“出口节点”。出口节点是一种特殊类型的Tor节点,它将你的互联网流量传回clearnet。 ...

  • 发布于 2021-03-20 18:49
  • 阅读 ( 339 )

如何使用vpn或英国代理观看bbc iplayer

... 2使用浏览器扩展观看bbc iplayer ...

  • 发布于 2021-03-21 10:31
  • 阅读 ( 423 )

什么是http/2?它如何影响互联网的未来?

... 到2012年,大多数现代浏览器和许多流行网站(Google、Twitter、Facebook等)已经支持SPDY。随着SPDY的普及,HTTP工作组(HTTP-WG)开始着手更新HTTP标准。 ...

  • 发布于 2021-03-22 10:55
  • 阅读 ( 135 )

什么是游戏路由器,它们值得购买吗?

...服务质量工具之一是高通公司的StreamBoost。StreamBoost(或基于StreamBoost的变体)在许多游戏路由器中都具有功能,因为许多路由器都由高通公司的芯片组提供支持。 ...

  • 发布于 2021-03-22 12:27
  • 阅读 ( 290 )

4个完全私有的免费匿名网络浏览器

... 最好的开始是使用浏览器。它是您的主要门户网站,因此使用更安全的选项将对您的隐私造成很大的影响。只需在当前浏览器中启用私有浏览是不够的。您需要一个新浏览器才能实现真正的...

  • 发布于 2021-03-22 21:05
  • 阅读 ( 259 )

如何使用假ip地址并在网上屏蔽自己

... 其次,有些浏览器只允许您路由浏览器流量。要使用web代理,请进入web浏览器的设置并手动输入代理服务器的IP地址。这允许网络浏览器以外的应用程序和设备(如Skype)仍然使用您...

  • 发布于 2021-03-23 08:37
  • 阅读 ( 352 )

你上网有多安全?问自己10个问题

... 三。您使用的是匿名网络浏览器吗? ...

  • 发布于 2021-03-23 15:12
  • 阅读 ( 179 )

现在是2020年。使用公共wi-fi仍然危险吗?

...-Fi热点可能会给您恶意软件。 现在,HTTPS已经普及,网络浏览器将传统的HTTP网站标记为“不安全”。如果你连接到公共Wi-Fi网络并通过HTTPS访问网站,公共Wi-Fi网络上的其他人可以看到你连接到的网站的域名(例如,tl80.cn网站),...

  • 发布于 2021-04-02 16:56
  • 阅读 ( 194 )
HE23799047
HE23799047

0 篇文章

相关推荐