You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/11-async/01-callbacks/article.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,13 +77,9 @@ function loadScript(src, *!*callback*/!*) {
77
77
}
78
78
```
79
79
80
-
<<<<<<< HEAD
81
-
Maintenant, si nous voulons appeler de nouvelles fonctions depuis le script, nous devons l'écrire dans le callback:
82
-
=======
83
-
The `onload` event is described in the article <info:onload-onerror#loading-a-script>, it basically executes a function after the script is loaded and executed.
80
+
L'événement `onload` est décrit dans l'article <info:onload-onerror#loading-a-script>, il exécute essentiellement une fonction après le chargement et l'exécution du script.
84
81
85
-
Now if we want to call new functions from the script, we should write that in the callback:
86
-
>>>>>>> bf7d8bb1af3b416d393af1c15b03cb1352da1f9c
82
+
Maintenant, si nous voulons appeler de nouvelles fonctions depuis le script, nous devons l'écrire dans le callback:
87
83
88
84
```js
89
85
loadScript('/my/script.js', function() {
@@ -108,11 +104,7 @@ function loadScript(src, callback) {
0 commit comments