-
Notifications
You must be signed in to change notification settings - Fork 128
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
serverSync with callback using synchronous XMLHttpRequest fails #65
Comments
+1 This could be a showstopper soon.. Without |
You could of course simply defer the initialization of the plugin.
|
@tentonaxe Have you had success with the serverSync? I have not gotten it to work. It seems like no matter what I do the countdowntimer is affected by a local system clock, and not using the server time. |
I never used serverSync, I just started the countdown after i retrieved the UTC datetime value from an ajax request. You can't stop the local system clock from impacting the countdown other than by calculating the difference between the two and then adjusting, but then if the user changes their clock after that point in time it'll be off again. |
The suggested
serverSync
implementation with synchronous XHR (taken from http://keith-wood.name/countdownRef.html)would soon begin failing across all browsers due to the deprecation of synchronous XMLHttpRequests due to its negative effect on user experience. Please see: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-extensions/WH1wOAxJQiM
At the moment there is no other way to use
serverSync
except for providing a callback that returns the server time using a synchronous XMLHttpRequestThe text was updated successfully, but these errors were encountered: