Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6937801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:24:40+00:00 2026-05-27T12:24:40+00:00

The codebases for modern web browsers like Chrome, Firefox, and Safari (WebKit) are quite

  • 0

The codebases for modern web browsers like Chrome, Firefox, and Safari (WebKit) are quite large. I am curious about what specifically makes their implementations so non-trivial that they require vast amounts of code.

As a corollary question, if a hypothetical browser only supported strict HTML5 and JavaScript, to avoid compatibility hacks, would the codebase be significantly smaller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:24:41+00:00Added an answer on May 27, 2026 at 12:24 pm

    For your first question, consider the things a modern browser needs to implement (some browsers push some of this work out to operating system services):

    1. Several parsers: XML, HTML, JavaScript, CSS, at least.
    2. At least four separate layout systems (CSS box model, flexbox, SVG, MathML).
    3. At least one graphics library; for cross-platform browsers this needs per-platform backends (IE9+ just uses the system Direct2D library; Safari on Mac just uses Quartz as far as I know).
    4. A high-performance virtual machine with a JIT, a garbage collector, a bit of a standard library (growing all the time; see typed arrays and various other recent JavaScript features).
    5. A DOM implementation, including various things like the HTML-specific and SVG-specific DOM interfaces and so forth.
    6. Audio and video processing facilities (again Safari on Mac and IE offload these to the operating system).
    7. Image processing facilities, with support for at least JPG/GIF/PNG. Again, some browsers may be able to offload parts of this to the operating system.
    8. A library for converting byte streams to Unicode characters. Again, sometimes this can be offloaded to the operating system and sometimes not.
    9. For cross-platform browsers, some sort of portability layer that abstracts away the platform-specific bits.
    10. An HTML editor with transactions and a programmable API; think contenteditable.
    11. A plaintext editor for textareas. Some of this can be shared with the HTML editor, maybe.
    12. A spellchecker, which may or may not be offloaded to the OS.
    13. A network library supporting HTTP, maybe SPDY, probably FTP, and maybe a few other protocols. Again, this may or may not be offloaded to the OS.
    14. A cryptographic library to handle SSL and various other cryptography needs. Again, this may or may not be offloaded to the OS.
    15. At least one database implementation (sqlite seems to be popular).
    16. Various code for the actual user interface and whatnot.
    17. Glue code to handle interactions between all these: code that manages calls back and forth between JavaScript and the DOM, code that manages recomputing style and layout information when the DOM changes, code that handles things like document.write injecting strings from JavaScript into the parser’s input stream, and so forth. Note that the amount of glue code is generally quadratic in the number of interacting modules.

    I’m probably missing a few things, but that’s off the top of my head.

    In addition to this at least Gecko and WebKit have template libraries for things like strings and arrays (because the C++ standard library ones have various drawbacks).

    For the rest… at this point a lot of the “compatibility hacks” are actually part of web standards. So you can’t exactly avoid them. Your scenario talks about JavaScript and HTML but not SVG or MathML or CSS. If you really just mean HTML and JavaScript but not CSS or the rest, then you could obviously cut out a bunch of code. If you include all of those, plus the audio and video capabilities of HTML5 and want your browser to perform well, then I doubt you can make it much smaller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large codebase, and I'd like to refactor the package structure so
I've got two legacy codebases that I would like to have living side by
I can't seem to find much information on the web about the different approaches
I've seen this is various codebases, and wanted to know if this generally frowned
I'm at a company, we keep recieviing new codebases from a third party vendor.
Our codebase where I work is .NET 2.0. For our new assembly/DLLs/web applications I
I have a large codebase that targetted Flash 7, with a lot of AS2
The codebase at work contains some code that looks roughly like this: #define DATA_LENGTH
Distcc makes it easy to distribute a C or C++ compile job across a
I've been playing with phpDocumentor recently and found it quite suitable for my needs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.