瀏覽代碼

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