If <module> is async & has its own scope, could the "await" keyword work within that scope? Great for dependencies +@littlecalculist
@jaffathecake @littlecalculist just for clarity, we mean conditional dependencies. Top-level, unconditional deps could use `import`
-
-
@wycats@littlecalculist unless the dependency is an image, stylesheet, xhr etc, then await is useful -
@jaffathecake@littlecalculist I'd rather a declarative solution so the browser can get going before execution. -
@wycats@littlecalculist actually, I was thinking of a .loaded() promise-vending method of a link/img element
End of conversation
New conversation -
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.