I am building a simple charting tool. When a user chooses a data source and a chart type, both the data and the script for the specific chart (.js) are loaded and then the code
I built something like this a while back that I called "when-then". I wanted something that would say, "Load all of these things, then do something when they're done".
https://github.com/geuis/when-then
I was inspired by the promises idea, but wanted something a little simpler for simple tasks.