Web browsers are a bit like digestive systems - we all have one, but we’re not really sure how it works, and sometimes it makes funny smells. So let’s have a look at what’s going on under the hood when your browser turns a bunch of characters into a delightful picture of a cat.
This will be a deep-dive into the internals of a browser’s HTML engine. We’ll take a look at what an HTML engine actually is, and the different engines that exist out in the wild. Then, using the HTML and CSS specs as a guide, we’ll see how the engine takes character streams of HTML and CSS and turns them into the DOM and CSSOM. From there, we’ll see how the browser’s rendering engine uses that information to create the images we see on screen.
At the end of this talk, we’ll understand where rules like “put your script tags at the end of the body” come from and we’ll gain some insights into the historical circumstances that led to modern browsers being the way they are, and a better understanding of some of their quirks.
Watch 'Anatomy of a Browser' on PyCon AU's YouTube account