by fake-name · 9y ago · 0 comments
------
It's basically:
Users: "My house is on fire!"
These devs: "Ok, we're here to help, we cleaned your windows. You can see the fire from outside so much better now!"
------
Maybe they should solve the problem of their website being a bloated javascript blob-monster, rather then just trying to fit it into a smaller box.
People are building entire vector editing programs on the web. How can you be fine with Photoshop being several hundred megs but not with this person having less than 10 megs of code to achieve something similar?
The web isn't just Hacker News and CNN. People write real programs on it.
Obviously shipping less code is Good(TM). But isn't an across the board improvement also good?
This is the exception rather than the rule. There is no reason why it should take more than ten seconds to load a static news article with text.
This proposal is aimed at web applications, not a simple website with image/text content, and minimal javascript.
Mind you, Gmail also has features like Chat as do Facebook and LinkedIn.
On the web, of course, since the application is downloaded dynamically, rather than being installed, people don't expect to wait and they start noticing. In some cases, web developers can fine tune their JS to make sure that less of it is shipped. Very quickly, however, this becomes horribly expensive, because it's a complicated problem with any language and JS is really not suited to static analysis and static code optimizations.
Of course, another part of the problem is that the delivery format of JS (i.e. the source code) is optimized for small files. For larger files, we can do much better. This is the objective of this project.
The memory footprint of a native and JS app is very different. While 11Mb Windows app won't require more than 11Mb of memory for the code, JS 11Mb app might require some 50-100 Mb of memory only for keeping the code, different caches and internal structures.
There is nothing wrong with doing both this and cutting down on bloat.
If no one had ever cared about performance in browser engines, we wouldn’t have the problem of massive pages that we have now. Things like Facebook would have to be more efficient about how they do things.
By making loading faster, you reduce the incentive for them to reduce their own bloat.
Of course, on the other hand, if browsers were still slow, there are various things that people can do now which they wouldn’t have bothered with before. A vector graphics engine or sound engine, for example, would have been impossible with the browser functionality of now but the performance of ten years ago, because they would have been unbearably slow.
You win some, you lose some. Mostly you just end up with an unhappy balance that keeps no one really happy.
...but service workers so users will love it!!! ...right?