Comment

Comment by Naru41

However, I always wonder, does the browser really need to understand this syntax? (I feel `function` is too much for just stylesheet)

Ultimately, what we want to represent is a DOM tree. The format doesn't matter. So we should send a computer-friendly, pre-compiled data structure that the browser can use directly. memcpy is faster than parse.

parent Naru41 11 days ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton