Quick example of a corner cases that you can't use the loader api to implement @wycats @domenic @BrendanEich https://gist.github.com/calvinmetcalf/a3ea472be21c21169310 …
-
-
-
Replying to @wycats
@wycats@domenic@BrendanEich no loader api hook to prevent evaluation (based on experience here https://github.com/calvinmetcalf/es6-translate …)1 reply 0 retweets 0 likes -
Replying to @CWMma
@wycats@domenic@BrendanEich I was mistaken about node status, I meant to bring that up in a loader question1 reply 0 retweets 0 likes -
Replying to @CWMma
@CWMma@domenic@BrendanEich Can you describe what aspect of this is unimplementable?1 reply 0 retweets 0 likes -
Replying to @wycats
@wycats@domenic@BrendanEich you may specify dependencies in the instantiate hook, but no ability to control when they are evaluated1 reply 0 retweets 0 likes -
Replying to @CWMma
@CWMma@domenic@BrendanEich You can implement `require` as a provided function.1 reply 0 retweets 1 like -
Replying to @wycats
@wycats@domenic@BrendanEich yes bit you can't statically analyze the deps but defer evaluation until the function is called1 reply 0 retweets 0 likes -
Replying to @CWMma
@CWMma@domenic@BrendanEich Why do you have to do that?1 reply 0 retweets 0 likes -
Replying to @wycats
@wycats@domenic@BrendanEich to load the script statically and take advantage of loader hooks2 replies 0 retweets 0 likes
@CWMma @domenic @BrendanEich It should definitely work. A host environment can provide whatever sync APIs it wants.
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.