summaryrefslogtreecommitdiffstats
path: root/application/views/header.php
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-18 22:18:26 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:26 +0200
commite9a248f9e9ff9a5b816338a634a0ace1d4883471 (patch)
tree7c8e3d87c29820e8d2c99bb56868df0e559fb048 /application/views/header.php
parent01581b3db2b617a5cf12ef7cf363b982dfc91d7b (diff)
Use require.js for javascript loading
Diffstat (limited to 'application/views/header.php')
-rw-r--r--application/views/header.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/application/views/header.php b/application/views/header.php
index ab947bd45..27fdbb92f 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -26,6 +26,10 @@ if (is_cli_client() && !isset($force_full_html)) {
echo '<link href="'.link_with_mtime("/data/local/favicon.png").'" rel="shortcut icon">';
}
?>
+ <script>
+ var require = { baseUrl: '/data/js' };
+ </script>
+ <script data-main="main" src="/data/js/vendor/require.js"></script>
</head>
<body>