summaryrefslogtreecommitdiff
path: root/src/templates/timeslider.html
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2012-11-17 15:28:33 +0100
committerMarcel Klehr <mklehr@gmx.net>2012-11-17 15:28:33 +0100
commit5baef07b559bbc6d6cd1410ffd0c8f9e987ef575 (patch)
treeab86013ca31f2dd233a6852c2d4214cb12aff30d /src/templates/timeslider.html
parente131f6007175af34b3e18cf1aaa52bf7907ba2c4 (diff)
downloadetherpad-lite-5baef07b559bbc6d6cd1410ffd0c8f9e987ef575.zip
Load l10n.js first but asynchronusly
Diffstat (limited to 'src/templates/timeslider.html')
-rw-r--r--src/templates/timeslider.html19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/templates/timeslider.html b/src/templates/timeslider.html
index ca5f2789..dfeee16c 100644
--- a/src/templates/timeslider.html
+++ b/src/templates/timeslider.html
@@ -32,8 +32,16 @@
<meta charset="utf-8">
<meta name="robots" content="noindex, nofollow">
<link rel="shortcut icon" href="<%=settings.favicon%>">
- <script type="text/javascript" src="../../static/js/l10n.js"></script>
<link rel="resource" type="application/l10n" href="../../locales.ini" />
+
+ <script type="text/javascript">
+ (function() {
+ // Set language for l10n
+ var language = document.cookie.match(/language=(\w{2})/);
+ if(language) document.documentElement.lang = language[1];
+ })();
+ </script>
+ <script type="text/javascript" src="../../static/js/l10n.js" async></script>
<link rel="stylesheet" href="../../static/css/pad.css">
<link rel="stylesheet" href="../../static/css/timeslider.css">
<link rel="stylesheet" href="../../static/custom/timeslider.css">
@@ -169,15 +177,6 @@
</div>
</div>
-<script type="text/javascript">
- (function() {
- // Set language for l10n
- var language = document.cookie.match(/language=(\w{2})/);
- if(language) document.documentElement.lang = language[1];
- })();
-</script>
-
-<script type="text/javascript" src="../../static/js/l10n.js"></script>
<script type="text/javascript" src="../../static/js/require-kernel.js"></script>
<script type="text/javascript" src="../../socket.io/socket.io.js"></script>