delay SW and passive event listeners

This commit is contained in:
Felix Schulze
2019-11-04 23:27:32 +01:00
parent 9978b379c2
commit 23d653aa94
3 changed files with 9 additions and 3 deletions

View File

@ -23,5 +23,10 @@ function partB(){
$('select').material_select();
});
}
if('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/sw.js');
});
}
</script>
";