diff --git a/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources.png b/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources.png index efa3c19d..7d779337 100644 Binary files a/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources.png and b/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources.png differ diff --git a/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources@2x.png b/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources@2x.png index e184bdd0..bdc8d72c 100644 Binary files a/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources@2x.png and b/1-js/03-code-quality/01-debugging-chrome/chrome-open-sources@2x.png differ diff --git a/8-async/01-callback-hell/01-animate-circle-callback/solution.md b/8-async/01-callbacks/01-animate-circle-callback/solution.md similarity index 100% rename from 8-async/01-callback-hell/01-animate-circle-callback/solution.md rename to 8-async/01-callbacks/01-animate-circle-callback/solution.md diff --git a/8-async/01-callback-hell/01-animate-circle-callback/solution.view/index.html b/8-async/01-callbacks/01-animate-circle-callback/solution.view/index.html similarity index 100% rename from 8-async/01-callback-hell/01-animate-circle-callback/solution.view/index.html rename to 8-async/01-callbacks/01-animate-circle-callback/solution.view/index.html diff --git a/8-async/01-callback-hell/01-animate-circle-callback/task.md b/8-async/01-callbacks/01-animate-circle-callback/task.md similarity index 100% rename from 8-async/01-callback-hell/01-animate-circle-callback/task.md rename to 8-async/01-callbacks/01-animate-circle-callback/task.md diff --git a/8-async/01-callback-hell/article.md b/8-async/01-callbacks/article.md similarity index 56% rename from 8-async/01-callback-hell/article.md rename to 8-async/01-callbacks/article.md index adc1561e..e9960e45 100644 --- a/8-async/01-callback-hell/article.md +++ b/8-async/01-callbacks/article.md @@ -1,8 +1,10 @@ -# Callback hell - -Consider this function `loadScript(src)` that loads a script: +# Introduction: sync vs async, callbacks + +Many actions in Javascript are *asynchronous*. + +For instance, take a look at the function `loadScript(src)` that loads a script: ```js function loadScript(src) { @@ -12,7 +14,7 @@ function loadScript(src) { } ``` -When the script element is added to the document, the browser loads it and executes. So, the function works. +The purpose of the function is to load a new script. When it adds the ` - -
Develop code that runs on OS X and other platforms. Apple provides tools and programming interfaces that help you move code to OS X from other platforms. Likewise, tools and programming interfaces help you develop code on OS X that you can deploy on other systems. -