Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the cores of the JS engine

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "what is the kernel of the JS engine". In the daily operation, I believe many people have doubts about what the kernel of the JS engine is. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "what is the core of the JS engine?" Next, please follow the editor to study!

What is the browser kernel?

The browser kernel can be divided into two parts: the rendering engine (layout engineer or Rendering Engine) and the JS engine. It is responsible for obtaining the contents of the web page (HTML, XML, images, etc.), collating messages (such as adding CSS, etc.), and calculating how the web page is displayed, which is then output to the monitor or printer. Different browsers have different grammatical interpretations of web pages, so the rendering effect is also different. JS engine parses the Javascript language and executes the javascript language to achieve the dynamic effect of the web page. At first, there was no clear distinction between the rendering engine and the JS engine, but then the JS engine became more and more independent, and the kernel tended to refer only to the rendering engine. A web standards project team created an ACID to test the engine's compatibility and performance. There are many kinds of kernels, such as adding non-commercial free kernels that few people use, there may be more than 10, but common browser kernels can be divided into four types: Trident, Gecko, Presto, and Webkit.

Rendering engine

Trident, also known as MSHTML, is a rendering engine developed by Microsoft (including Javascript engine JScript). At present, many browsers use this engine, such as IE,MaxThon,TT,The World,360, Sogou browser, Maxthon (the latest version is no longer in use) and so on. Gecko is developed by C++, Open Source's rendering engine, including SpiderMonkey (Rhino). The main users are Firefox,Netscape6 and above, MozillaSuite/SeaMonkey and so on.

Webkit is developed by Apple based on KHTML. It includes two engines, Webcore and JavaScriptCore (SquirrelFish,V8). The main users are Safari,Chrome. Presto was started by Opera Software as a rendering engine for Opera. Macromedia Dreamweaver (MX version and above) and Adobe Creative Suite 2 also use the Presto kernel. The main users are Opera7 and above.

What are the cores of the JS engine

JavaScript, originally designed by Netscape's Brendan Eich, is a dynamic, weakly typed, prototype-based language with internal support classes. Based on it, the ECMAScript standard is established. His origins are not Brendan Eich's own invention, as described in the book Javascript Advanced programming. (see aimingoo's textual research article) JavaScript must also include DOM and BOM in the implementation of the browser. Web browsers typically use public API to create host objects that are responsible for reflecting DOM objects into JavaScript.

At this point, the study of "what are the kernels of the JS engine" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report