HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

JavaScript Tutorial - "load" event | Detect when images or the page has loaded

24,248 views November 5, 2018 6:14

Watch on YouTube
Channeldcode

Description from the creator

By using the "load" event within JavaScript, you are able to detect when the web page or images, scripts etc. have finished loading. From there, you can run a callback function to take action.

In this video we take a look at two examples of the "load "event, one for the entire page and one that deals with individual images. Enjoy.

Support me on Patreon:
patreon.com/dcode - with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
developer.mozilla.org/en-US/docs/Web/Events/load

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

About this tutorial

dcode published this 6:14 video tutorial on November 5, 2018. It has been watched 24,248 times on YouTube.

Channel
dcode
Category
Education
Duration
6:14
Published
November 5, 2018
Views
24,248
Likes
362

Share

This tutorial in other languages