如何在浏览器中加载框架集? [英] How is a frameset loaded in a browser?

查看:121
本文介绍了如何在浏览器中加载框架集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很想知道浏览器如何加载和渲染框架集.我知道这在不同的浏览器中可能有所不同.我个人最关心IE的工作方式.

I'm curious to find out how a browser loads and renders a frameset. I know this may be different among different browsers. I am personally most concerned with how IE does it.

据我了解,浏览器将向包含框架集的页面发出一个请求.呈现该页面后,浏览器将请求该框架集中每个框架的内容.

From my understanding, the browser will make one request for the page that contains the frameset. Upon rendering that page, the browser will then make a request for each individual frame's content within that frameset.

这是正确的吗?如果是,对帧集中单个帧的请求是异步完成的还是线性执行的?

Is this correct and if so, are the requests for individual frames within the frameset done asynchronously or are the requests performed linear?

这是假设我们纯粹是在使用HTML.

This is assuming that we are purely using HTML.

推荐答案

据我了解,浏览器将向包含框架集的页面发出一个请求.呈现该页面后,浏览器将请求该框架集中每个框架的内容.

From my understanding, the browser will make one request for the page that contains the frameset. Upon rendering that page, the browser will then make a request for each individual frame's content within that frameset.

是的,基本上是正确的.

Yes, that's basically correct.

对帧集中单个帧的请求是异步完成的还是线性执行的?

are the requests for individual frames within the frameset done asynchronously or are the requests performed linear?

从内存上看(而且我很久没使用过Framesets了),它是异步的.

From memory (and I haven't worked with Framesets in a loooong time), it is asynchronous.

框架集基本上是一种过时的技术,并且已经很长时间没有真正使用了,但是如果它与异步的iframe有所不同,我会感到非常惊讶.

Framesets are basically an obsolete technology, and haven't really been in common use for a long time now, but I'd be very surprised if it works any differently to iframes, which are asynch.

您专门询问了IE.对于当前的IE版本,IE和其他浏览器之间确实应该没有什么主要区别.

You specifically asked about IE. For current IE versions, there really shouldn't be any major differences between IE and the other browsers.

但是 IE版本(IE8和更早版本)对它们能够异步加载的文件数量有严格的限制.如果我没记错的话,一次只能是两个文件,或大约这个数量.

But older IE versions (IE8 and earlier) had quite tight restrictions on the number of files they were capable of loading asynchronously. If I recally correctly, the limit was just two files at a time, or something of that order.

鉴于此,如果您的框架集中有多个文件并且以旧版IE加载了文件,那么答案是肯定的,它可能会线性地至少加载其中一些文件.

Given that, if you've got more than a couple of files in your frameset and you load it in an old IE version, then the answer is yes, it probably will load at least some of them linearly.

但是最好的建议实际上是完全避免使用框架集.它们被淘汰是有充分理由的.

But the best advice really is to avoid framesets entirely. They are deprecated for good reasons.

这篇关于如何在浏览器中加载框架集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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