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();
|
||||
});
|
||||
}
|
||||
if('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function() {
|
||||
navigator.serviceWorker.register('/sw.js');
|
||||
});
|
||||
}
|
||||
</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>
|
||||
if('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker
|
||||
.register('/sw.js');
|
||||
window.addEventListener('load', function() {
|
||||
navigator.serviceWorker.register('/sw.js');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user