-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWA always loading in mobile offline mode. Only sometime it is working #332
Comments
The root cause of this issue is because of late registering of service worker. Many packages are fetched before service worker gets registered. So we need to make sure service worker gets registered before fetching mail html page(with all the packages/libs) |
@Shailesh351 The workaround mentioned in the issue above, solves the problem.
|
Yes @shubhsherl I have tried that one. But it is not proper solution. In case of slow internet. User waits for loading app -> then service worker gets registered -> Then again app reloads. So we need to figure out other way around. |
But this will happen only on the first load of the app. Another option is to add the minimum required requests in SW install listener, but this is not an efficient way, given there are many package requests. |
Agree with you @shubhsherl. It will be for the first time loading only. I tried finding other ways but no luck. So we should go with this implementation. I am creating PR for the same |
No description provided.
The text was updated successfully, but these errors were encountered: