Skip to content
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

Auto Reload Web page in 2 sec #277

Closed
khabarsatta opened this issue Apr 24, 2020 · 21 comments
Closed

Auto Reload Web page in 2 sec #277

khabarsatta opened this issue Apr 24, 2020 · 21 comments
Milestone

Comments

@khabarsatta
Copy link

Installed PWA plugin in wordpress . after installing webpage auto reloading every 2 se . so i dactivated plugin

@westonruter
Copy link
Collaborator

May be the same issue as #166 or #202.

In order to determine what the issue is for you, you'll need to share your site URL with the plugin active so I can determine the cause and provide a solution.

@khabarsatta
Copy link
Author

https://khabarsatta.com my website url

@westonruter
Copy link
Collaborator

The issue is your site is already attempting to install a service worker: FeedifySW.js. Only one service worker can be installed installed in a given scope. The point of the PWA plugin is to provide an API to for multiple SW scripts to be combined into the one script that is installed as the service worker. However, you may need to work with Feedify for this to be possible. Currently their SW is being installed via: https://cdn.feedify.net/getjs/feedbackembad-min-3.0.js

To be compatible with a site's existing service worker, it's likely that Feedify would need to make a similar changes as OneSignal is investigating: OneSignal/OneSignal-Website-SDK#615

@khabarsatta
Copy link
Author

But i removed feedifysw.js before 5 to 10 days

@westonruter
Copy link
Collaborator

It's still there. I saw it being installed. You may have deleted the JS file but the code to install the SW file is still there.

In any case, the auto-reloading behavior will be removed with #205.

@khabarsatta
Copy link
Author

Ok and please please can u tell me how can i delete feedify codes ... Please i finded on header , footer any where but not showing ... Please help me

@westonruter
Copy link
Collaborator

It's in this code appearing on your site:

<script type="99dc0721fc7d348093701696-text/javascript">	var feedify = feedify || {};
	window.feedify_options={fedify_url:"https://feedify.net/",pkey:"BO3GwElzsHEh8opPhu4ugfZljT1a97ph-uRKAKPSD8OGEn4UBJrxBhQBLL_xtxAyyAJksjFLk4LIQv3c5mlEHwc"};
	(function (window, document){
		function addScript( script_url ){
			var s = document.createElement('script');
			s.type = 'text/javascript';
			s.src = script_url;
			document.getElementsByTagName('head')[0].appendChild(s);
		}
		addScript('https://tpcf.feedify.net/uploads/settings/7fafb97b51ab539a8beca343810b4ed9.js?ts='+Math.random());
		addScript('https://cdn.feedify.net/getjs/feedbackembad-min-3.0.js');
	})(window, document);
</script>

@khabarsatta
Copy link
Author

Yes but how can i check this code add in xxx.php file

@westonruter
Copy link
Collaborator

I don't know. I don't know how you added it in the first place.

@khabarsatta
Copy link
Author

I used feedify plugin... But before some dayes i dactivate and deleted

@westonruter
Copy link
Collaborator

Sorry, I don't know.

@khabarsatta
Copy link
Author

Please Recheck .. I Removed all feedify scripts but facing same issue reloading page

@khabarsatta
Copy link
Author

Please check one more tym i removed your privided scripts but facing sane issue

@westonruter
Copy link
Collaborator

I don't see the PWA plugin active, so I can't see the reported issue. No service worker is being installed.

@khabarsatta
Copy link
Author

Now pwa is Active please check again :) Thanks in advance

@westonruter
Copy link
Collaborator

I did not see any auto-reload behavior with the service worker installed.

However, any reloading is going to be disabled as part of #205. So I suggest following that issue and testing the build when it is available (probably by today or tomorrow).

@khabarsatta
Copy link
Author

But me and some user facing teloding issue ... Please clear catch and recheck

@westonruter
Copy link
Collaborator

westonruter commented Apr 26, 2020

I did check with a clear cache. I don't see any reloading issue.

I do see you just disabled added skip-waiting, which will also alleviate the reloading.

Please subscribe to #205 and test the build when it is available.

@khabarsatta
Copy link
Author

Added add_filter( 'wp_service_worker_skip_waiting', '__return_false' );! This Filter and working Fine
Thanks Alot

@khabarsatta
Copy link
Author

its reloading in intalled app :(

@westonruter
Copy link
Collaborator

I've opened a PR to fix this and have a build for testing: #279 (comment).

@westonruter westonruter added this to the 0.5 milestone May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants