From Greg Linden, via Adam Goucher, comes a reference to a paper by Benjamin Livshits and Emre Kiciman of Microsoft Research. "Doloto: Code Splitting for Network-Bound Web 2.0 Applications" describes an automatic mechanism for splitting and stubbing Javascript, so that only the bits the page really needs are downloaded right away. As Web 2.0 apps get fatter and fatter, this kind of "just in time assembly" will matter more and more---sort of like on-demand loading of dynamic libraries started to matter for desktop performance about fifteen years ago ;-). It would have made the trick Alex showed us for DrProject unnecessary.