- Context: I'm trying to load a jQuery plugin asynchronously, with Webpack code splitting. (I definitely don't want this as part of my main bundle, haha!)
- I didn't use
singlechunk.jsbecause I want jQuery to be cached as its own dependency (in case I need to lazy load a different plugin somewhere else) - I'm currently using
multichunks-but-blocking.js, but the waterfall shows that it waits for jQuery to finish downloading before attemptingintl-tel-input. - Is there a way to download both
jqueryandintl-tel-inputchunks in parallel, then execute once they're both downloaded? I'm guessing I might be able to usePromise.all, but struggling to get my head around what's meant to be static, etc.
(p.s. I can't use import() because I'm using Bublé)
I was hoping this might work...
But the dependencies can't be statically extracted.