<script> window.registrationPromise = navigator.serviceWorker.register('sw.js'); </script>