News for hackers. Stuff that matters.
Re:LoadJS – A tiny async loader for modern browsers (710 bytes) by xatxat on Wednesday December 14, 2016 @04:10AM (#13174714)
Checkout the import() proposal:

https://github.com/tc39/proposal-dynamic-import

It basicly is what you are describing.

There are no comments on this comment yet.