diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index da379ebe..2b70ab5b 100644 --- a/page/using-jquery-core/document-ready.md +++ b/page/using-jquery-core/document-ready.md @@ -46,7 +46,7 @@ The example below shows `$( document ).ready()` and `$( window ).load()` in acti console.log( "document loaded" ); }); - $( window ).load(function() { + $( window ).on( 'load', function() { console.log( "window loaded" ); });