How Does A Web Browser Work

Table of contents:

How Does A Web Browser Work
How Does A Web Browser Work

Video: How Does A Web Browser Work

Video: How Does A Web Browser Work
Video: How Do Web Browsers Work? 2024, November
Anonim

Web browser is a program through which Internet pages are viewed. The general architecture of all popular browsers is similar: it consists of several components that are independent of each other, which are subsequently combined through special interfaces.

How does a web browser work
How does a web browser work

Instructions

Step 1

First comes the network settings: JavaScript, XML parser and Display Backend (handling events on the screen). These are 4 independent modules that operate within the framework of the graphics engine. Next, a high-level engine is programmed, which, like the user interface, is capable of storing certain data. There are also additional components (plugins, multimedia, mail module, help, developer tools, etc.), but they do not affect the structure of the browser as much.

Step 2

Each component of the architecture is at a certain level and can only interact with the nearest element. Therefore, the architecture of the browser is called layered.

Step 3

The user interface is a kind of buffer that exists between the engine and the user. It is he who accepts all the wishes from the user, gives him all the possibilities and processes all his actions. The interface helps provide a standard set of functions. The high-level engine is responsible for processing the page, that is, for displaying the entire graphic part. He also starts loading the page, refreshes them, goes back or forward, works with bookmarks, history and settings that affect the graphics.

Step 4

The very same graphics engine is the main part of any browser. It renders the content of the resource and parses HTML and XML, taking into account the influence of CSS and JS, as well as other objects (images, flash). Based on all the data collected by the engine, a layout is generated that the user sees on the monitor.

Step 5

The components network, JS, XML parser are specialized parts of the program that work on the corresponding parameters. Display Backend is connected to the OS and provides the output of the most primitive graphics (scrolling bars, forms, window decoration, etc.), which depends on the operating system.

Step 6

Thanks to the component system, the browser can easily change the design, it is easier to localize program errors, each component is improved separately and does not affect the program as a whole, each component can be used separately.

Recommended: