Hacker News new | ask | show | jobs
by Naru41 40 days ago
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.

1 comments

Memcpy of what? I'm fairly sure Firefox's internal representation is different from Chrome's, so you just replaced parsing from X with parsing from Y.