Skip to content

Commit

Permalink
Improve compatibility with WordPress 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
madalingorbanescu committed Mar 3, 2021
1 parent 9bf3f5a commit 5ac6dae
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 17 deletions.
2 changes: 1 addition & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20352,7 +20352,7 @@ URL: https://github.com/hammerjs/jquery.hammer.js
}

// /* ====== ON WINDOW LOAD ====== */
$window.load(function() {
$window.on("load", function() {
softInit();
eventHandlers();
loop();
Expand Down
2 changes: 1 addition & 1 deletion assets/js/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function softInit() {
}

// /* ====== ON WINDOW LOAD ====== */
$window.load(function () {
$window.on('load', function () {
softInit();
eventHandlers();
loop();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
* Load responsive_videos().
* Trigger resize to make sure responsive_videos() is loaded after IS.
*/
$( window ).load( responsive_videos ).resize( debounce( responsive_videos, 100 ) ).trigger( 'resize' );
$( window ).on('load', responsive_videos ).resize( debounce( responsive_videos, 100 ) ).trigger( 'resize' );
$( document ).on( 'post-load', responsive_videos );

} )( jQuery );
} )( jQuery );

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ac6dae

Please sign in to comment.