leoj3n
1
On this David Walsh Blog post:
There is this issue:
@matthewp would need a pro JS Bin account to fix this, apparently.
leoj3n
3
Not that anyone else cares, but just for my own convenience, I’ve extracted the URLs from the iframes:
-
https://jsbin.com/cawuhe/10/edit?html,js,output (a simple example of asynchronous code)
-
https://jsbin.com/cawuhe/12/edit?html,js,output (the same code is run in a Zone using can-zone)
-
https://jsbin.com/foroju/21/edit?html,js,output (using Promises waiting for all of the promises to resolve)
-
https://jsbin.com/foroju/23/edit?html,js,output (can-zone allows us to write this same code without manually keeping track of each request’s promise)
-
https://jsbin.com/foroju/25/edit?html,js,output (measure just the time in which our JS is executing)
-
https://jsbin.com/tibezo/2/edit?html,js,output (can-zone will wait for everything to complete)
Of course, nobody has acknowledged they’ve seen this post, but if you do thanks for the awesome guide