delay SW and passive event listeners
This commit is contained in:
parent
9978b379c2
commit
23d653aa94
File diff suppressed because one or more lines are too long
@ -23,5 +23,10 @@ function partB(){
|
|||||||
$('select').material_select();
|
$('select').material_select();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', function() {
|
||||||
|
navigator.serviceWorker.register('/sw.js');
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
";
|
";
|
||||||
|
@ -140,8 +140,9 @@ När jag började informera mig om Universiteter, antagningspoäng och meritvär
|
|||||||
<script src="assets/js/softscrollscript.js"></script>
|
<script src="assets/js/softscrollscript.js"></script>
|
||||||
<script>
|
<script>
|
||||||
if('serviceWorker' in navigator) {
|
if('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker
|
window.addEventListener('load', function() {
|
||||||
.register('/sw.js');
|
navigator.serviceWorker.register('/sw.js');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user