-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Disable Turbolinks support when not supported #650
Conversation
5ba3494
to
8112f17
Compare
@@ -63,6 +63,10 @@ function turbolinksVersion5() { | |||
return (typeof Turbolinks.controller !== 'undefined'); | |||
} | |||
|
|||
function turbolinksSupported() { | |||
return Turbolinks.supported; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is this compatible with v2 and v5 turbolinks?
- What browsers are not supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Is this compatible with v2 and v5 turbolinks?
refer to turbolinks/turbolinks and turbolinks/turbolinks-classic repo and it's README.md,
- v2 is export
Turbolinks.supported
since turbolinks/turbolinks-classic@46bc7bf. - v5 also export it since first beta release (turbolinks/turbolinks@0b9b084). 👍
- What browsers are not supported?
A browser that doesn't supporthistory.pushState
nor requestAnimationFrame
, Turbolinks.supported
will return false
. e.g. IE9-IE10 😩
In my use case, I don't find suitable polyfills/shims for that browser APIs.
But ReactDOM still supporting that old browsers, so React itself works fine.
Please rebase your changes on top of my latest commit. |
8112f17
to
656f806
Compare
@justin808 I did. |
Looks good. Please update the CHANGELOG. Reviewed 2 of 2 files at r1. CHANGELOG.md, line 8 at r1 (raw file):
Please see the other changelog entries and make consistent. Comments from Reviewable |
Please update to latest on master and let me know when you've updated. I'd like to ship 6.3.3 ASAP. Please do your change log entry under 6.3.3. |
By checking with Turbolinks.supported API, fallback unsupported browser to non Turbolinks mode.
656f806
to
a4d162e
Compare
@justin808 done! Please check. |
GREAT JOB! Thanks! Reviewed 2 of 2 files at r2. Comments from Reviewable |
By checking with Turbolinks.supported API, fallback unsupported browser to non Turbolinks mode.
This change is