aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-04-18 23:12:47 +0200
committerMatěj Cepl <mcepl@cepl.eu>2016-04-18 23:13:16 +0200
commit6ebfe7801ac807ba42189afde745f707333b82dd (patch)
treea2e6a5becde461b406a3ad8a920451fe041d050e
parentaf12ad7098fc53d1385508ee340ac82f62d92488 (diff)
downloadhesla-6ebfe7801ac807ba42189afde745f707333b82dd.tar.gz
Make even inlined JS defered
-rw-r--r--sworker.js2
-rw-r--r--templates/base.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/sworker.js b/sworker.js
index bc8fb3a..139f3b1 100644
--- a/sworker.js
+++ b/sworker.js
@@ -1,4 +1,4 @@
-var version = 'v36 - 2016-04-18';
+var version = 'v37 - 2016-04-18';
var toCache = [
'/',
'index.html',
diff --git a/templates/base.html b/templates/base.html
index 3f66d08..00af4c1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -24,7 +24,7 @@
display: none;
}
</style>
- <script type="text/javascript">
+ <script type="text/javascript" defer>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sworker.js').then(function(reg) {
console.log('Yey!', reg);