From cd55c7d636ca5c56d36e884bfa88193a3e762d66 Mon Sep 17 00:00:00 2001 From: Vishu Singh Date: Sat, 30 Sep 2017 19:50:59 +0200 Subject: [PATCH] Replaced deprecated .load alias with .on() listener This causes error in the console and prevents the plugin from running with new jQuery versions. Please merge if the solution seems fit. --- src/jquery.stellar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.stellar.js b/src/jquery.stellar.js index 98b2ea5..828f4ea 100644 --- a/src/jquery.stellar.js +++ b/src/jquery.stellar.js @@ -225,7 +225,7 @@ // Fix for WebKit background rendering bug if (options && options.firstLoad && /WebKit/.test(navigator.userAgent)) { - $(window).load(function() { + $(window).on('load', function() { var oldLeft = self._getScrollLeft(), oldTop = self._getScrollTop();