Skip to content

Commit

Permalink
Make scripts deferred; optimize execution order
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Jan 2, 2016
1 parent de9e4b2 commit 00517c5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tgui/tgui.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<script id='data' type='application/json'>{}</script>
<meta charset='utf-8'/>
<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
<script type='text/javascript'>
var data;
function receiveUpdate(dataString) {
Expand All @@ -17,18 +16,21 @@
}
};
</script>
<link rel='stylesheet' type='text/css' href='tgui.css' />
<link rel='stylesheet' type='text/css' href='tgui.css'/>
<script id='data' type='application/json'>{}</script>
<script defer type='text/javascript' src='tgui.js'></script>
</head>
<body>
<div id='container' class='container'>
<div class='notice'>Loading...</div>
<div class='notice'>
<span>Loading...</span>
</div>
</div>
<noscript>
<div class='notice'>
<span>Javascript is required in order to use this interface.</span>
<span>Please enable Javascript and restart the game.</span>
</div>
</noscript>
<script type='text/javascript' src='tgui.js'></script>
</body>
</html>

0 comments on commit 00517c5

Please sign in to comment.