移动浏览器与网络浏览器有何不同

发布于 2024-09-28 07:38:29 字数 91 浏览 0 评论 0原文

在用户点击 www.google.com 和在浏览器中查看该页面之间会发生一组特定的过程。谁能告诉我在类似的过程中发生的所有事情。还有移动浏览器与网络浏览器的不同之处。

There are a specific set of process happens between a user hits www.google.com and see the page in the browser. Can anybody tell me what all things that happen during a similar process. Also how mobile browser is different from web browser.

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

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

发布评论

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

评论(3

傲娇萝莉攻 2024-10-05 07:38:30
  1. 名称解析。 www.google.com 通过域名
  2. HTTP 请求解析为 IP 地址。浏览器向服务器发送 GET 请求。
  3. HTTP 响应。服务器发回 HTTP 响应。
  4. 解析。客户端解析生成的文档并解析引用的资源(css、图像等)
  5. HTTP 请求。对于每个引用的资产,浏览器会向服务器发送另一个请求。
  6. HTTP 响应。对于每个引用的资产,服务器都会做出响应。

在这方面,http是如何请求的,移动设备与桌面设备没有什么不同。

  1. Name resolution. www.google.com gets resolved to an IP address through domain name
  2. HTTP Request. The browser sends a GET request to server.
  3. HTTP Response. The server sends back an HTTP response.
  4. Parse. The client parses the resulting document and resolves referenced assets (css, images, etc)
  5. HTTP Requests. For each referenced asset, the browser sends another request to the server.
  6. HTTP Response. For each referenced asset, the server responds.

In this respect, how http is requested, mobile is not different than desktop.

晌融 2024-10-05 07:38:30

Aame 的事情发生了,移动浏览器像 PC 浏览器一样呈现 html 文档。

当然,它们可能有更少的内存、不同的渲染引擎、在非常小的屏幕上运行等等。但是,最终它只是对 google.com 的另一个 http 请求。

根据网络或网络连接类型的不同,可能还会存在其他差异。运营商网关/代理。一些运营商会过滤/代理所有与网络的通信。

此外(通常)从运营商客户到网络的互联网流量也通过几个公共 IP 路由

Aame stuff happens, mobile browser(s) renders html documents like your pc browser(s).

Of course they might have have less memory, different rendering engine(s), run on a very small screen etc etc etc. But, at the end it is just another http request to google.com.

Depending on network or connection type to the net there might be another difference. Operator gateway/proxy. Some operators filter/proxy all communication to the net.

Also (usually) internet traffic from operator's customers to the net routed through couple of public IPs

凹づ凸ル 2024-10-05 07:38:29

这实际上取决于您要比较的浏览器。例如,Safari Mobile 和 Safari for Mac 彼此非常相似,以至于您经常在两者上看到相同的页面。然而,Pocket PC 上的 IE 与 IE8 有很大不同,两者的页面呈现方式也有所不同。

通常,站点运营商会检查所有浏览器都有的 UserAgent 字符串,以了解它是哪个浏览器。然后,网站运营商可以根据自己的意愿选择显示移动网站还是常规网站。

PPK 在 quirksmode.org 上提供了所有浏览器怪癖和功能的详细列表。这是移动开发的必读之作。

This really depends on what browsers you're comparing. For example, Safari Mobile and Safari for Mac are quite similar to one another, so much so that you often see the same page on both. However IE for Pocket PCs is much different than IE8 and pages would render somewhat differently in those two.

Usually, site operators check the UserAgent string that all browsers have, to see which browser it is. Then, it's up to the site operator to show a mobile site or a regular site based on whether they want to or not.

PPK has a great list of all browser quirks and features, at quirksmode.org. It's a must-read for mobile development.

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