Commit 29cb8f9b authored by Eirik Alvær's avatar Eirik Alvær

Using head.js to optimize perfermance of script loading.

parent d3465cbc
......@@ -24,18 +24,24 @@
</div>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="js/common.js"></script>
<script src="js/model.js"></script>
<script src="js/templates-loader.js"></script>
<script src="js/metadata-maker.js"></script>
<script src="js/controller.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/headjs/0.99/head.min.js"></script>
<script>
head.js(
// External libraries
"http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js",
"http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js",
"http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js",
"http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js",
"http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0/handlebars.min.js",
"http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js",
// Our own scripts
"js/common.js",
"js/model.js",
"js/templates-loader.js",
"js/metadata-maker.js",
"js/controller.js"
);
</script>
</body>
</html>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment