Articles tagged (
bytes
)




The JavaScript Engine
Published 28 Apr 2021

The HTML parser encounters a script tag with a source. Code from this source gets loaded from either the networkcache, or an installed service worker. The response is the requested script as a stream of bytes, which the byte stream decoder takes care of! The byte stream decoder decodes the stream of bytes as it’s being downloaded.

9559723c6e73715f10c226f30dc2278c.gif

The byte stream decoder creates tokens from the decoded stream of bytes. For example, 0066 decodes to f0075 to u006e to n0063 to c0074 to t0069 to i006...

71 views