소스 검색

Update to call fullScreenImages() after all assets load

Chris Runnells 6 년 전
부모
커밋
9e4aece69c
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      radcliffe-2/assets/js/radcliffe-2.js

+ 5 - 0
radcliffe-2/assets/js/radcliffe-2.js

@@ -70,6 +70,11 @@
 		fullScreenImages();
 	});
 
+	// One more time after everything (eg: Custom Fonts) has loaded for better height accuracy
+	$( window ).load( function() {
+		fullScreenImages();
+	});
+
 	// On window resize.
 	$( window ).on( 'resize', function() {
 		fullScreenImages();