Dynamic imports also break any assumptions a static analyser, e.g. my brain, have about WTF the API I'm about use use. plz, let me read code without going insane
-
-
-
Static `import` enables static analysis. How could a dynamic form of that work with static analysis?
- 4 more replies
New conversation -
-
-
Great article! Minor correction: "The static import syntax can only be used at the very start of the file." -> "The static import syntax can only be used at the top-level of the file." Static imports are effectively hoisted, so can appear elsewhere in the file.
- 1 more reply
New conversation -
-
-
@emberjs Maybe a good moment to have a look at https://github.com/ember-cli/rfcs/pull/98 …? See also https://github.com/genkgo/babel-plugin-dynamic-import-amd ….Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I had no idea you can `import()` from a script! Quick question, is there anything equivalent to prefetch for import()?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
Dynamic `import()` unlocks new capabilities compared to static `import`. Here’s what you should know: