Implement a promise-based asynchronous require for dynamically named module requests using either asynchronous XHR and eval (with no global footprint) or script injection (with a global module factory registration system).
I vote for script injection. XHR would require that all scripts be served from the same server as the initial page, which might not always be optimal, and doesn't seem to have any other benefits.
Implement a promise-based asynchronous require for dynamically named module requests using either asynchronous XHR and eval (with no global footprint) or script injection (with a global module factory registration system).