improvement

This commit is contained in:
Ilya Kantor 2019-05-23 22:27:44 +03:00
parent 9f7235d4eb
commit df7800adda
6 changed files with 99 additions and 22 deletions

View file

@ -3,7 +3,7 @@
The lifecycle of an HTML page has three important events:
- `DOMContentLoaded` -- the browser fully loaded HTML, and the DOM tree is built, but external resources like pictures `<img>` and stylesheets may be not yet loaded.
- `load` -- not onyl HTML is loaded, but also all the external resources: images, styles etc.
- `load` -- not only HTML is loaded, but also all the external resources: images, styles etc.
- `beforeunload/unload` -- the user is leaving the page.
Each event may be useful: