Merge pull request #483 from orkhan-huseyn/patch-1

Fixed typo in DOMContentLoaded paragraph
This commit is contained in:
Ilya Kantor 2018-08-30 13:42:11 +03:00 committed by GitHub
commit 00b83cdf39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ For instance:
<img id="img" src="https://en.js.cx/clipart/train.gif?speed=1&cache=0">
```
In the example the `DOMContentLoaded` handler runs when the document is loaded, not waits for the page load. So `alert` shows zero sizes.
In the example the `DOMContentLoaded` handler runs when the document is loaded and does not wait for the image to load. So `alert` shows zero sizes.
At the first sight `DOMContentLoaded` event is very simple. The DOM tree is ready -- here's the event. But there are few peculiarities.