Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
Altofocus: Replace window.load event with document.ready, as a work-a…
Browse files Browse the repository at this point in the history
…round for an issue with the ads JavaScript. See #108.
  • Loading branch information
laurelfulford committed May 1, 2018
1 parent 83c4451 commit 626562c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions altofocus/assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,13 @@
$( document )
.ready( initColumnLists )
.ready( initGallerySlider )
.ready( fadeInPage )
.ready( function() {

body = $( document.body );

window.addEventListener( 'scroll', altofocus_debounce( stickyPageHeader, 20, 1 ) );

/**
* Window calls
*/
$( window )
.load( fadeInPage );
} );

})(jQuery);

0 comments on commit 626562c

Please sign in to comment.