I created a one-page application in which users can create reports. Users are provided with a form that allows them to select a data source, chart type and topic, then after confirmation the page downloads the required files and draws a chart.
To improve performance, I would like to load code modules and data in parallel. For example, if a user selects Pie Chart, Blue Theme, and Airline Statistics:
WHEN (the js module loads the pie chart) and (the blue css theme is loaded) and (the Airline json statistics are loading)
THEN (chart)
I found several libraries that implement AMD, and a number of libraries that implement promises, but none where module loading and promises cannot be combined, as in my example above. Is this possible, and are there libraries that already implement this?
My need for client side JavaScript.
source share