All pages in tagged with #Promises

Promise-based JS Script Loader

Using ES6 promises to build an ultra-small script loader

Monday Jul 14, 2014 — 2 minute read — 402 words

If you’re not familiar with JavaScript promises, you’ll definitely want to check out this article by Jake Archibald to see why there the coolest thing since sliced bread. We’re going to see how we can take advantage of promises to build a script loader in just a few lines of code. The Basic Syntax of Promises The result of any promise is accessed with the then() function. The first argument is the success callback, the second is the failure callback.

Read More