diff --git a/2-ui/5-loading/03-onload-onerror/1-load-img-callback/solution.view/index.html b/2-ui/5-loading/03-onload-onerror/1-load-img-callback/solution.view/index.html index c1624d03..50b9e741 100644 --- a/2-ui/5-loading/03-onload-onerror/1-load-img-callback/solution.view/index.html +++ b/2-ui/5-loading/03-onload-onerror/1-load-img-callback/solution.view/index.html @@ -35,7 +35,7 @@ } // for each image, - // let's create another img with the same src and check that we have its width immediately + // let's create another img with the same src and check that we have its width function testLoaded() { let widthSum = 0; for (let i = 0; i < sources.length; i++) { diff --git a/2-ui/5-loading/03-onload-onerror/article.md b/2-ui/5-loading/03-onload-onerror/article.md index 56b8165b..a45e869c 100644 --- a/2-ui/5-loading/03-onload-onerror/article.md +++ b/2-ui/5-loading/03-onload-onerror/article.md @@ -113,13 +113,13 @@ This rule also affects resources from other domains. If we're using a script from another domain, and there's an error in it, we can't get error details. -For example, let's take a script with a single (bad) function call: +For example, let's take a script `error.js` that consists of a single (bad) function call: ```js // 📁 error.js noSuchFunction(); ``` -Now load it from our domain: +Now load it from the same site where it's located: ```html run height=0