Permalink
Browse files

Defer initial iframe content loading.

  • Loading branch information...
1 parent 9d2b6af commit 9b4ff39b3443cf23f13fec916c1ed79e0ce8817a @jhuckabee committed Aug 25, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 public/js/app.js
  2. +1 −1 views/index.ejs
View
1 public/js/app.js
@@ -84,6 +84,7 @@ $(function() {
};
+ $('#itemContent').attr('src', '/intro');
HN.resizeItemsList();
HN.loadItems();
View
2 views/index.ejs
@@ -14,7 +14,7 @@
<div id="items" class="scrollbar"></div>
</div>
<div id="itemDetail">
- <iframe id="itemContent" src="/intro"></iframe>
+ <iframe id="itemContent"></iframe>
</div>
</div>
<div id="loadingIndicator" style="display:none;">Loading...</div>

0 comments on commit 9b4ff39

Please sign in to comment.