From 53b0bd2e17d2f23bea498d90de1900877e321bfd Mon Sep 17 00:00:00 2001 From: Gabriele Cirulli Date: Tue, 11 Mar 2014 14:30:09 +0100 Subject: [PATCH] move scripts to bottom of body --- index.html | 16 ++++++++-------- js/application.js | 8 +++----- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 0e639e8..84c1a48 100644 --- a/index.html +++ b/index.html @@ -6,14 +6,6 @@ - - - - - - - - @@ -74,5 +66,13 @@ Created by Gabriele Cirulli. Based on 1024 by Veewo Studio and conceptually similar to Threes by Asher Vollmer.

+ + + + + + + + diff --git a/js/application.js b/js/application.js index 656a88d..1ce870e 100644 --- a/js/application.js +++ b/js/application.js @@ -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); }); -- GitLab