From e941f586acaa92c4778b1b29b39783398b1eb551 Mon Sep 17 00:00:00 2001 From: Do Nhu Vy Date: Fri, 19 Aug 2016 21:23:02 +0700 Subject: [PATCH 1/5] Will work success on Google Chrome 52.0.2743.116 (64-bit) Mac OS X 10.11.6 ``` $( window ).load(function() { console.log( "window loaded" ); }); ``` didn't work on Google Chrome 52.0.2743.116 (64-bit) Mac OS X 10.11.6 --- page/using-jquery-core/document-ready.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index da379ebe..99f027ee 100644 --- a/page/using-jquery-core/document-ready.md +++ b/page/using-jquery-core/document-ready.md @@ -46,9 +46,9 @@ The example below shows `$( document ).ready()` and `$( window ).load()` in acti console.log( "document loaded" ); }); - $( window ).load(function() { - console.log( "window loaded" ); - }); + $(window).on('load', function () { + console.log("window loaded"); + }); From 5ec831c6f47355fdd2f0b7dba1cde89e8c441921 Mon Sep 17 00:00:00 2001 From: Do Nhu Vy Date: Fri, 19 Aug 2016 21:30:27 +0700 Subject: [PATCH 2/5] Will work success on Google Chrome 52.0.2743.116 (64-bit) Mac OS X --- page/using-jquery-core/document-ready.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index 99f027ee..826827bf 100644 --- a/page/using-jquery-core/document-ready.md +++ b/page/using-jquery-core/document-ready.md @@ -47,7 +47,7 @@ The example below shows `$( document ).ready()` and `$( window ).load()` in acti }); $(window).on('load', function () { - console.log("window loaded"); + console.log(" window loaded "); }); From 5694ede66d6094510da89d8032e03654020a97e1 Mon Sep 17 00:00:00 2001 From: Do Nhu Vy Date: Fri, 19 Aug 2016 21:33:45 +0700 Subject: [PATCH 3/5] Will work success on Google Chrome 52.0.2743.116 (64-bit) Mac OS X --- page/using-jquery-core/document-ready.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index 826827bf..7ae63786 100644 --- a/page/using-jquery-core/document-ready.md +++ b/page/using-jquery-core/document-ready.md @@ -46,8 +46,8 @@ The example below shows `$( document ).ready()` and `$( window ).load()` in acti console.log( "document loaded" ); }); - $(window).on('load', function () { - console.log(" window loaded "); + $( window ).on( 'load', function () { + console.log( "window loaded" ); }); From e844b7d36f6dde49e5b2ec84e97576b5e667da4a Mon Sep 17 00:00:00 2001 From: Do Nhu Vy Date: Fri, 19 Aug 2016 21:39:12 +0700 Subject: [PATCH 4/5] Will work success on Google Chrome 52.0.2743.116 (x64) Mac OS 10.11.6 --- page/using-jquery-core/document-ready.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index 7ae63786..94cd0857 100644 --- a/page/using-jquery-core/document-ready.md +++ b/page/using-jquery-core/document-ready.md @@ -46,9 +46,9 @@ The example below shows `$( document ).ready()` and `$( window ).load()` in acti console.log( "document loaded" ); }); - $( window ).on( 'load', function () { - console.log( "window loaded" ); - }); + $( window ).on( 'load', function () { + console.log( "window loaded" ); + }); From e7264fdb756cac5b4a7e8443b5b7aebea8baae06 Mon Sep 17 00:00:00 2001 From: Do Nhu Vy Date: Fri, 19 Aug 2016 21:41:47 +0700 Subject: [PATCH 5/5] Will work success on Google Chrome 52.0.2743.116 (64-bit) Mac OS X --- page/using-jquery-core/document-ready.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/using-jquery-core/document-ready.md b/page/using-jquery-core/document-ready.md index 94cd0857..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 ).on( 'load', function () { + $( window ).on( 'load', function() { console.log( "window loaded" ); });