Jamie's tech blog

The Blue Nowhere

[Frontend Note] Web Security from the Browser's Perspective

A minimal frontend security note

Looking at Web security from the browser's perspective, it can be roughly divided into Web page security, browser network security, and browser system security.

[Frontend Note] What are macrotasks and microtasks in the EventLoop

Use macrotasks and microtasks to fully understand asynchronous behavior in Javascript

When asynchronous behavior is mentioned in Javascript, names like `setTimeout`, `Promise`, and `async/await` immediately come to mind. However, while learning about V8 and the browser recently, I realized that although these three are all asynchronous on a macro level, they are actually quite different on a micro level.

[Frontend Note] Frontend performance optimization from the browser's perspective

Analyzing frontend performance optimization through the browser rendering principles

After the browser receives the HTML data from the Network Process, it hands it off to the Render Process for rendering. From a frontend engineering perspective, performance optimization is about tuning the code during the Render Process rendering to speed up rendering.

[Frontend Note] What happens after entering a URL in the browser?

Walking through the page loading flow from Chrome's multi-process architecture

A common interview question — what actually happens when you enter a URL? Walking through Chrome's multi-process architecture, the network request, and the rendering flow.