Skip to content

Commit

Permalink
Defer initial iframe content loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuckabee committed Aug 25, 2011
1 parent 9d2b6af commit 9b4ff39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ $(function() {

};

$('#itemContent').attr('src', '/intro');
HN.resizeItemsList();
HN.loadItems();

Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9b4ff39

Please sign in to comment.