TextEditor starts up much more slowly than it used to
One of the great things about early versions of TextEditor was the fast startup time compared to Etherpad, but it seems this has regressed lately. The network tab of the Chrome dev tools suggests two main causes:
- The Meteor Javascript bundle is now 101K compressed, and this takes a while to push through. This seems surprisingly large for the functionality offered, so I wonder if this couldn't easily be fixed by removing some unnecessary dependencies.
- After downloading the Javascript, the app downloads a series of small html files. This seems unusual for a Meteor app -- normally all the templates are compiled into Javascript. Is this Polymer's doing? None of the files are very large, but there are some 20 files to download and the browser will only send a few requests at a time, so lots of time is spent waiting for round trips to the server.
I suspect both of these problems could be improved considerably with not too much effort. Note that when testing locally, it may help to turn on Chrome's "throttling" mode in the network tab, which causes it to simulate latency or bandwidth constraints.
Hi Kenton, This is good feedback. I mentioned using Polymer was an experiment, and it's true that this could have slowed it down. I hadn't noticed any slowness, but there is a lot of room for improvement in terms of initial load. For example, the polymer components can be compiled into a single file. There might also be some unused Meteor packages, so I'll examine this as well.
Hmm, trying again just now, TextEditor seems to be starting much faster than it was yesterday. I'm not sure what changed. Maybe Oasis or my internet connection was really at fault here.