Skip to content

Commit

Permalink
Move JS to the bottom of the body.
Browse files Browse the repository at this point in the history
Seems to fix a bug where output sizing wasn't happening on page load.
  • Loading branch information
akavlie committed Oct 27, 2011
1 parent 8390f83 commit 6c50c1b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ $(function() {
var newHeight = $('html').height() - $('header').outerHeight(true) -
$('#prime-input').outerHeight(true) -
(sel.outerHeight(true) - sel.height()) - 10;
// (10 = #content padding; extra 5 prevents jittery resizing)
// (10 = #content padding)
sel.height(newHeight);
}

Expand Down
20 changes: 11 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
<head>
<title>Webby IRC</title>

<script src="/socket.io/socket.io.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="js/mustache.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/backbone.js"></script>

<script src="js/util.js"></script>
<script src="app.js"></script>

<link rel="stylesheet" type="text/css" href="app.css">
</head>

Expand All @@ -35,5 +26,16 @@
<input id="prime-input" type="text">
</div>
</div>


<!-- JAVASCRIPT -->
<script src="/socket.io/socket.io.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script src="js/mustache.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/backbone.js"></script>

<script src="js/util.js"></script>
<script src="app.js"></script>
</body>
</html>

0 comments on commit 6c50c1b

Please sign in to comment.