Browser engine explained

A browser engine (also known as a layout engine or rendering engine) is a core software component of every major web browser. The primary job of a browser engine is to transform HTML documents and other resources of a web page into an interactive visual representation on a user's device.

Name and scope

Besides "browser engine", two other related terms are commonly used: "layout engine" and "rendering engine".[1] [2] [3] In theory, layout and rendering (or "painting") could be handled by different engines. In practice, however, these components are tightly coupled and rarely encountered on their own outside of the browser engine.[1]

In addition to layout and rendering, a browser engine enforces the security policy between documents, handles navigation through hyperlinks and data submitted through forms, and implements the Document Object Model (DOM) exposed to scripts associated with the document.[1] [4]

Every major browser supports JavaScript to provide a wide range of dynamic behavior for web pages. However, JavaScript is implemented as a separate JavaScript engine, which has enabled its usage elsewhere. In a browser, the two engines are coordinated via the DOM and Web IDL bindings.[4]

Browser engines are also used in non-browser applications. An email client needs one to display HTML email. Beginning in the 2010s, many apps have been created with the frameworks based on Google's Chromium project; each of these standalone apps functions much like a web app. (Two examples are Spotify and Slack.)[5] [6]

Layout and rendering

The layout of a web page is typically specified by Cascading Style Sheets (CSS). Each style sheet is a series of rules for how the page should be presented. For example, some rules specify typography details, such as font, color, and text size, while others determine the placement of images. The engine combines all relevant CSS rules to calculate precise graphical coordinates for the visual representation it will paint on the screen.[1] [4]

Some engines may begin rendering before a page's resources are downloaded. This can result in visual changes as more data is received, such as images being gradually filled in or a flash of unstyled content.[7]

Notable engines

Timeline

Only the duration of active development is shown, which is when relevant new Web standards continue to be added to the engine.

  1. header

ImageSize = width:750 height:170PlotArea = left:80 right:5 bottom:20 top:5AlignBars = justifyDateFormat = dd/mm/yyyyPeriod = from:01/01/1997 till:31/05/2022TimeAxis = orientation:horizontal format:yyyy

Colors = id:microsoft value:rgb(0.3, 0.5, 1) id:gecko value:rgb(1, 0, 0) id:khtml value:rgb(0.3,0.3,0.3) id:webkit value:rgb(0.3, 0.36, 0.36) id:blink value:rgb(0.3, 0.39, 0.39) id:mgray value:rgb(0.5, 0.5, 0.5) id:lgray value:rgb(0.75, 0.75, 0.75)

ScaleMajor = gridcolor:mgray unit:year increment:1 start:01/01/1997ScaleMinor = unit:month increment:3 start:01/01/1997BackgroundColors = bars:lgray

BarData = bar:Gecko text:Gecko bar:Trident text:Trident bar:EdgeHTML text:EdgeHTML bar:KHTML text:KHTML bar:WebKit text:WebKit bar:Blink text:Blink

PlotData= align:center textcolor:black fontsize:8 mark:(line,black) width:15 shift:(0,-4)

bar:Gecko from: 01/05/1997 till: 31/05/2022 color:gecko mark:(line,white)

bar:Trident from: 01/10/1997 till: 15/07/2015 color:microsoft mark:(line,white)

bar:EdgeHTML from: 12/11/2014 till: 15/12/2018 color:microsoft mark:(line,white)

bar:KHTML from: 04/11/1998 till: 15/10/2016 color:khtml mark:(line,white)

bar:WebKit from: 25/06/2001 till: 31/05/2022 color:webkit mark:(line,white)

bar:Blink from: 03/04/2013 till: 31/05/2022 color:blink mark:(line,white)

See also

Notes and References

  1. Web site: Behind the scenes of modern web browsers. Tali Garsiel. 21 April 2018.
  2. Web site: Gecko. https://wayback.archive-it.org/all/20140604004321/https://developer.mozilla.org/en-US/docs/Mozilla/Gecko. dead. 4 June 2014. Mozilla. 21 April 2018.
  3. Web site: Introducing Goanna. M.C. Straver. 22 June 2015. 21 April 2018.
  4. Web site: How Blink Works . Google . 12 March 2024.
  5. Web site: Open Source - Spotify . Here are the sources to the great Chromium Embedded Framework that is used by the Spotify Desktop client. . 1 December 2023.
  6. News: Betts . Anaïs . Building Hybrid Applications with Electron . Slack Engineering . 25 October 2016 . Slack . 1 December 2023.
  7. Web site: Ryan . Boudreaux . October 18, 2013. How to prevent Flash of Unstyled Content on your websites . 2021-10-09 . TechRepublic . en . 2021-03-05 . https://web.archive.org/web/20210305133101/https://www.techrepublic.com/blog/web-designer/how-to-prevent-flash-of-unstyled-content-on-your-websites/ . live .
  8. Web site: Apple snub stings Mozilla . https://web.archive.org/web/20121025015655/http://news.cnet.com/2100-1023-980492.html . Paul Festa . . 14 January 2003 . 25 October 2012 . 16 February 2017 . Paul Festa . dead .
  9. Web site: Open-sourcing Chrome on iOS! . 2017 . Due to constraints of the iOS platform, all browsers must be built on top of the WebKit rendering engine. . 26 April 2021.
  10. Web site: Peter . Bright . Google going its way, forking WebKit rendering engine . . . 3 April 2013 . 9 March 2017.
  11. Web site: Mendelevich . Alan . 14 May 2021 . You Think You Can Forget About the "Legacy" Microsoft Edge? Not So Fast! .
  12. Web site: Mackie . Kurt . Microsoft Edge Browser To Get New Rendering Engine but EdgeHTML Continues . Redmond Mag . 10 December 2018 . 21 December 2019.