DEV Community

Discussion on: Making React App a Progressive Web App (PWA)

Collapse
 
mustafaanaskh99 profile image
Mustafa Anas

Any idea why they made it optional?
Does it make the app any "heavier"?

Great tip by the way <3

Thread Thread
 
ankitkamboj18 profile image
Ankit Kamboj

They made it optional because every organization/individual has their own way of implementing service workers and PWA. And they don't want to force something which in the end is not required and replaced by some custom code.
Making the app heavier is not right to say as to when we add our own custom code for service workers and PWA implementation that also takes some memory, so it's not because of making the app heavier. Just they provided choice if we want we can use else skip.