move scripts to bottom of body

This commit is contained in:
Gabriele Cirulli
2014-03-11 14:30:09 +01:00
parent 2e5ab789c1
commit 53b0bd2e17
2 changed files with 11 additions and 13 deletions
+3 -5
View File
@@ -1,6 +1,4 @@
document.addEventListener("DOMContentLoaded", function () {
// Wait till the browser is ready to render the game (avoids glitches)
window.requestAnimationFrame(function () {
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator);
});
// Wait till the browser is ready to render the game (avoids glitches)
window.requestAnimationFrame(function () {
var manager = new GameManager(4, KeyboardInputManager, HTMLActuator);
});