easier to read
This commit is contained in:
parent
cf33b67042
commit
c2d5f8e140
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,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, so it can see all the elements, including `<img>` below.
|
||||
In the example, the `DOMContentLoaded` handler runs when the document is loaded, so it can see all the elements, including `<img>` below.
|
||||
|
||||
But it doesn't wait for the image to load. So `alert` shows zero sizes.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue