-
Notifications
You must be signed in to change notification settings - Fork 100
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
Infinite reload if skip waiting enabled when Genesis sample theme active #183
Comments
Using a timestamp for the asset 231c231
< <link rel='stylesheet' id='genesis-sample-css' href='https://wordpressdev.lndo.site/content/themes/genesis-sample/style.css?ver=1562023927' type='text/css' media='all' />
---
> <link rel='stylesheet' id='genesis-sample-css' href='https://wordpressdev.lndo.site/content/themes/genesis-sample/style.css?ver=1562023929' type='text/css' media='all' />
233c233
< <link crossorigin="anonymous" rel='stylesheet' id='genesis-sample-fonts-css' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro%3A400%2C400i%2C600%2C700&display=swap&ver=1562023927' type='text/css' media='all' />
---
> <link crossorigin="anonymous" rel='stylesheet' id='genesis-sample-fonts-css' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro%3A400%2C400i%2C600%2C700&display=swap&ver=1562023929' type='text/css' media='all' />
235c235
< <link rel='stylesheet' id='genesis-sample-gutenberg-css' href='https://wordpressdev.lndo.site/content/themes/genesis-sample/lib/gutenberg/front-end.css?ver=1562023927' type='text/css' media='all' />
---
> <link rel='stylesheet' id='genesis-sample-gutenberg-css' href='https://wordpressdev.lndo.site/content/themes/genesis-sample/lib/gutenberg/front-end.css?ver=1562023929' type='text/css' media='all' /> |
I experience the infinite reload on the Avada platform, which comes with the PWA plugin, as have others who've reported this to Avada support. Is there a change Avada can make to avoid this problem? If not, will this bug be fixed in the future? If so, can you provide a rough timeframe for the update - days, weeks, months, a year? Thank you for the excellent app and help. Marc |
@ez360pic can you share the URL to your site with the plugin active so I can take a look to confirm whether it is the same issue? I believe the crux of the problem is this code: Namely, instead of doing: $enqueued_scripts[ $handle ] = wp_scripts()->registered[ $handle ]; We should perhaps be doing: $enqueued_scripts[ $handle ] = wp_scripts()->registered[ $handle ]->src; Same for styles. The problem I believe is that the |
Weston, thanks for the quick response. My site is live with PWA deactivated. I can't have the site continually reloading for actual visitors. I don't see a good way to easily and directly show this to you unless we can arrange for me activate it for a specific non-business hour before deactivating it again.
If you have a file fix and directory where it should be moved, I can work with my programmer to swap it in and test it temporarily. Marc
|
Weston, thank you. I'll advise after we test that.
-----Original message-----
From: Weston Ruter
Sent: Wednesday, July 3 2019, 1:22 pm
To: xwp/pwa-wp
Cc: Marc Freedman; Mention
Subject: Re: [xwp/pwa-wp] Infinite reload if skip waiting disabled when Genesis sample theme active (#183)
@ez360pic Please test #187.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@ez360pic How has testing gone? |
Thx. My programmer hasn't gotten to it yet. Hope to soon.
-----Original message-----
From: Weston Ruter
Sent: Sunday, July 7 2019, 4:58 pm
To: xwp/pwa-wp
Cc: Marc Freedman; Mention
Subject: Re: [xwp/pwa-wp] Infinite reload if skip waiting disabled when Genesis sample theme active (#183)
@ez360pic How has testing gone?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Weston, we installed the fix and reactivated the plugin. It worked. Thank you.
-----Original message-----
From: Weston Ruter
Sent: Wednesday, July 3 2019, 1:22 pm
To: xwp/pwa-wp
Cc: Marc Freedman; Mention
Subject: Re: [xwp/pwa-wp] Infinite reload if skip waiting disabled when Genesis sample theme active (#183)
@ez360pic Please test #187.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I noticed pages continuously reloading due to service worker updates when skip waiting is enabled. This is due to the
deps
in the revision for the offline template being variable each time the service worker is generated:It may be due to a timestamp being used for the dependency revision.
The text was updated successfully, but these errors were encountered: