Browse Source

Altofocus: Replace window.load event with document.ready, as a work-around for an issue with the ads JavaScript. See #108.

Laurel Fulford 7 years ago
parent
commit
626562c33a
1 changed files with 1 additions and 5 deletions
  1. 1 5
      altofocus/assets/js/scripts.js

+ 1 - 5
altofocus/assets/js/scripts.js

@@ -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);