Re:Removing HTTP/2 Server Push from Chrome
by slaymaker1907 on Friday August 19, 2022 @08:12PM
(#32527642)
I think the web is a great application framework, but I agree some sites really don't need as much JS as they use. For example, my note taking setup is a self modifying HTML file that relies heavily on JS for obvious reasons. Your typical blog or news site really doesn't need it in the same way.
Re:Removing HTTP/2 Server Push from Chrome
by alerighi on Friday August 26, 2022 @09:17PM
(#32614590)
I think that one of the problem of the modern web is that it's seen as an application framework, and we forgot the origin that is the browser as a document viewer, basically.
Most of the problems wouldn't be even present if we reason in terms of documents, and in terms of operations that you can do on these documents (GET, PUT, DELETE, POST). You find out that for most website you don't need JS!
One could argue that JS is an optimization because you don't load up again the whole page each time you navigate to a different URL. That is false: if you cache the assets that doesn't change between pages such as stylesheets and images correctly, downloading just the HTML of the page is something trivial. Look at the number of requests that a webpage that uses JS does: is that more efficient?
Re:Removing HTTP/2 Server Push from Chrome
by shadowgovt on Friday August 19, 2022 @10:26PM
(#32528426)
> to do what?
Mostly to polyfill around the fact that basic DOM manipulation is garbage and the default UI widgets are ugly.
The problem is that who make websites, instead of making documents, maybe built dynamically by the server and with some interactive elements in it, doesn't sent you a document but instead sends you an application that builds the document into the browser, basically turning an application that simply displays you document into a virtual machine that runs an entire graphical environment.
The fact is that most of the websites to function doesn't need a line of JavaScript, and still are downloading Mb of libraries to do what?