diff --git a/scripts/jquery.parallax-1.1.3.js b/scripts/jquery.parallax-1.1.3.js index f3569dc..a2c630f 100644 --- a/scripts/jquery.parallax-1.1.3.js +++ b/scripts/jquery.parallax-1.1.3.js @@ -63,7 +63,10 @@ http://www.gnu.org/licenses/gpl.html }); } - $window.bind('scroll', update).resize(update); + $window.bind('scroll', function() { + window.requestAnimationFrame(update); + }).resize(function() { window.requestAnimationFrame(update); }); + update(); }; })(jQuery);