|
|
|
|
|
by lobster_johnson
2938 days ago
|
|
Sure, it might work. A binary format still has to be parsed, of course, but it would likely be a little more efficient. One question is whether that efficiency gain would be worth the hassle of a binary format. Binary formats have generally not been a good fit for the web; DNS and HTTP/2 are the only widespread protocols I can remember off the top of my head that are binary. gRPC is binary, and look at the lack of mature toolchains to work with it -- while there are some tools now, the selection is minuscule compared to those available for HTML and CSS. Binary formats are also trickier to extend and keep backwards-compatible. |
|
right now it's like this
get html -> read html -> read css -> build tree -> calculate styles -> apply styles to tree -> paint the tree
what I'm thinking is this...
get html/binary -> read it -> paint the tree