<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    <script>
      if ('serviceWorker' in navigator) {
        window.addEventListener('load', function() {
          navigator.serviceWorker.register('{% static "sw.js" %}').then(function(reg) {
            console.log('Service worker registered.', reg);
          }).catch(function(err) {
            console.warn('Service worker registration failed:', err);
          });
        });
      }
    </script>