---
title: "Discussion on \"Simple Steps to convert WEB to PWA\" | Hashnode"
description: "Discussion on \"Simple Steps to convert WEB to PWA\". In public/index.html add following:\n\n    <script>\n      if (\"serviceWorker\" in Navigator) {\n        window.addEventListener(\"load\", () => {\n          navigator.serviceWorker\n            .register(\"/service-worker.js\")\n            .then((reg) => {\n   ..."
url: "https://hashnode.com/posts/pwa/662a324253c006b85bf155d8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Simple Steps to convert WEB to PWA](https://devjobalia.hashnode.dev/pwa?utm_source=hashnode&utm_medium=feed)

In public/index.html add following: <script> if ("serviceWorker" in Navigator) { window.addEventListener("load", () => { navigator.serviceWorker .register("/service-worker.js") .then((reg) => { ...

Apr 25, 2024 · 1 min read · devjobalia.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#pwa](https://hashnode.com/tag/pwa)

## Written by

[Dev K Jobalia](https://hashnode.com/@DevJobalia)

@DevJobalia

  
[View profile](https://hashnode.com/@DevJobalia)

WEB DEV | DSA | DevOps | Open Source | Technical Writer

Hey there! 👋 I'm Dev Jobalia, a Web Developer from India with a passion for Computer Science. I bring years of experience, a versatile tech toolkit, and a knack for fostering seamless teamwork. #WebDev #TechEnthusiast #Teamwork

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
