search
HomeWeb Front-endHTML TutorialBrowser kernel information sorting

Browser kernel information sorting

Mar 25, 2017 am 11:06 AM
KernelBrowser

In the 21st century, the variety of browsers is enough to dazzle you. When we do page compatibility testing, how should we debug our web pages in the face of numerous browsers? In fact, if you understand the core of the browser, you won't have a headache. Because their cores are not as numerous as their number, the common types of cores can be classified into four types: Trident, Gecko, WebKit, and Presto.

As for the many browsers, they are just: {shells of different browsers kernel = browser}. The shell refers to the menus and toolbars on the browser interface, which allow users to operate. And they all call the kernel to implement various functions. It can be seen that the kernel is the core of the browser. Therefore, as long as we understand what the core engine of a browser is, we can then conduct compatibility testing on it without feeling stuck.

The core of the browser can be divided into: rendering engine and js engine:

Rendering engine: layout engineer or Rendering Engine, which are responsible for parsing and rendering of page content , that is, when visiting a website, the process goes from a blank page to the completion of page loading, from a simple page to a complete layout. It parses the page's tags, loads the css, and calculates how the page should be displayed. This understanding is that there are different browser cores, and their lexical parsing of web pages is also different, so there are display differences, which is a headache compatibility issue for our front-end development.

js engine: parses the page script (javascript) language to achieve some dynamic effects on the page.

Introduction to the four cores:

1. Trident: an engine developed by Microsoft. Its IE products are driven by it, and many other browsers also use it as the kernel. Because Microsoft IE has always been the leader, it is a bit self-developed, and its support for W3C standards is not that good. There are many bugs, and there were very few updates at first, which led to the existence of ie5, ie6 and other evil browsers, which made many students with little front-end development experience despise it! Yes, starting from ie8, ie has slowly become more powerful again. I look forward to ie10...

2. Gecko: an open source rendering engine, written in C, with powerful functions, rich functions, and can support many complex functions. FireFox is the representative of web page effects and browser extension interfaces. It has good support for w3c standards and is very powerful in development and debugging, but the startup speed is not very fast;

3. WebKit: developed by Apple based on KHTML. The parsing of web pages is relatively fast, only second to Presto, but the fault tolerance is relatively poor, and non-standard web pages cannot be displayed normally. Representative browsers that use it for core development are Safari and Chrome;

4. Presto: Started by Opera Software, it is recognized as the fastest rendering engine. When processing scripting languages ​​​​such as JS scripts, it will be about 3 times faster than other kernels, but there are also some problems with the speed, that is, some web compatibility is lost;

Now, I guess you have a certain understanding of browsers , it should be helpful for you to deal with browser compatibility issues in the future. Different kernels have different rendering engines, and their parsing of pages is also different. This is the reason for page differences. But if we try to use a streamlined HTML structure and use CSS reasonably when laying out, we can greatly reduce compatibility issues and speed up our development efficiency.

Related articles:

Mainstream browser kernels and JS engines

Browser kernel summary

php gets browser kernel version

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How to implement multi-project carousel in Bootstrap 4?How to implement multi-project carousel in Bootstrap 4?Apr 30, 2025 pm 03:24 PM

Solution to implement multi-project carousel in Bootstrap4 Implementing multi-project carousel in Bootstrap4 is not an easy task. Although Bootstrap...

How does deepseek official website achieve the effect of penetrating mouse scroll event?How does deepseek official website achieve the effect of penetrating mouse scroll event?Apr 30, 2025 pm 03:21 PM

How to achieve the effect of mouse scrolling event penetration? When we browse the web, we often encounter some special interaction designs. For example, on deepseek official website, �...

How to modify the playback control style of HTML videoHow to modify the playback control style of HTML videoApr 30, 2025 pm 03:18 PM

The default playback control style of HTML video cannot be modified directly through CSS. 1. Create custom controls using JavaScript. 2. Beautify these controls through CSS. 3. Consider compatibility, user experience and performance, using libraries such as Video.js or Plyr can simplify the process.

What problems will be caused by using native select on your phone?What problems will be caused by using native select on your phone?Apr 30, 2025 pm 03:15 PM

Potential problems with using native select on mobile phones When developing mobile applications, we often encounter the need for selecting boxes. Normally, developers...

What are the disadvantages of using native select on your phone?What are the disadvantages of using native select on your phone?Apr 30, 2025 pm 03:12 PM

What are the disadvantages of using native select on your phone? When developing applications on mobile devices, it is very important to choose the right UI components. Many developers...

How to optimize collision handling of third-person roaming in a room using Three.js and Octree?How to optimize collision handling of third-person roaming in a room using Three.js and Octree?Apr 30, 2025 pm 03:09 PM

Use Three.js and Octree to optimize collision handling of third-person roaming in the room. Use Octree in Three.js to implement third-person roaming in the room and add collisions...

What problems will you encounter when using native select on your phone?What problems will you encounter when using native select on your phone?Apr 30, 2025 pm 03:06 PM

Issues with native select on mobile phones When developing applications on mobile devices, we often encounter scenarios where users need to make choices. Although native sel...

Why can some websites achieve mouse scrolling and penetration effect, while others cannot?Why can some websites achieve mouse scrolling and penetration effect, while others cannot?Apr 30, 2025 pm 03:03 PM

Exploring the implementation principle of mouse scrolling events When browsing some websites, you may notice that some page elements still allow scrolling the entire page when the mouse is hovering...

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor