How do browsers work?
December 17, 2006 3:04 PM
Subscribe
How does a browser render a website?
I am a programmer, but have never made my own GUI widgets. Most of what I do is web based, or simple Java apps. Nothing very advanced.
That being said, I can't conceptually understand how a web browser render the display elements
Does it create some sort of text block, and image object, inside a viewer object, and manipulate all of them together? Grawr!
I would LOVE a step by step explanation of how say Firefox renders cnn.com.
Such like:
urlfetch is called and pulls the html into a storage object.
treeparse is called on the urlfetch return object.
the parsed tree is sent to the rendering object, which pulls down each image/plugin, and begins creating elements.
Arg! How do pages scroll, but no elements ever randomly move.
I tried browsing the Firefox source code, but that is WAY to low level for me to grasp.
posted by SirStan to computers & internet (10 comments total)
5 users marked this as a favorite
posted by MonkeySaltedNuts at 3:14 PM on December 17, 2006