diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index bba6bd6e2b9c..d5ecf0aa1d96 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -1034,6 +1034,8 @@ In the browser window some HTML APIs like `requestFullScreen` can only be invoked by a gesture from the user. Setting `userGesture` to `true` will remove this limitation. +Code execution will be suspended until web page stop loading. + ```js contents.executeJavaScript('fetch("https://jsonplaceholder.typicode.com/users/1").then(resp => resp.json())', true) .then((result) => {