From 57382f42cd71aca60b53c903c4cb6902e1a25fb6 Mon Sep 17 00:00:00 2001 From: madalingorbanescu Date: Wed, 3 Mar 2021 11:54:14 +0200 Subject: [PATCH] Improve compatibility with WordPress 5.7 --- assets/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index e19ca9a..47d6e2d 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -175,7 +175,7 @@ $container.masonry('layout'); }); - $(window).load(function() { + $(window).on('load', function() { $container.masonry('layout'); }); @@ -739,7 +739,7 @@ /* ====== ON WINDOW LOAD ====== */ - $window.load(function() { + $window.on('load', function() { if (!$html.hasClass('touch')) { var $nav = $('.nav--main').addClass('hover-intent');