Web浏览器中使用事件循环模型来控制由Brendan Eich与JavaScript共同开发的DOM事件之间的交互? [英] Was the event loop model used in web browsers to control interaction between DOM events concomitantly developed by Brendan Eich with JavaScript?

查看:268
本文介绍了Web浏览器中使用事件循环模型来控制由Brendan Eich与JavaScript共同开发的DOM事件之间的交互?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网络浏览器中使用的事件循环评估模型是为了控制由Brendan Eich与JavaScript同时开发的DOM事件(和后来的网络)之间的交互。



或者在JavaScript之前或之后JavaScript?



编辑:我特别询问浏览器中的事件循环的位置。我知道事件循环是一个长期的发明。

解决方案

事件循环早于javascript ..但只是一个微小的



事件循环是为了支持渐进式在Netscape中下载图片。几乎立即,它也被用来支持在渲染所有图像之前显示DOM元素的早期渲染。



当时其他浏览器显示空白的白色屏幕图像被下载。净效果是Netscape看起来更快,即使它需要相同的时间来下载和渲染完整的页面。



一旦事件循环出现(最初处理用于下载图像的网络代码)JavaScript处理简单地添加到循环中。


Was the event loop evaluation model used in web browsers to control interaction between DOM events (and later the network) concomitantly developed by Brendan Eich with JavaScript?

Or did it pre- or post-date JavaScript?

Edit: I am specifically asking about the placement of the event-loop inside browsers. I am aware the event loop is a long-standing invention.

解决方案

The event loop predates javascript.. but just by a tiny bit.

The event loop was introduced to support progressive download of pictures in Netscape. And almost immediately it was also used to support early rendering where DOM elements are displayed on screen before all images are downloaded.

At the time, other browsers displayed blank white screen while images are downloaded. The net effect is that Netscape appears to be faster even though it takes the same amount of time to download and render the complete page.

Once the event loop is there (initially to handle network code for downloading images) javascript processing was simply added into the loop.

这篇关于Web浏览器中使用事件循环模型来控制由Brendan Eich与JavaScript共同开发的DOM事件之间的交互?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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