Disable Turbolinks support when not supported#650
Conversation
5ba3494 to
8112f17
Compare
| } | ||
|
|
||
| function turbolinksSupported() { | ||
| return Turbolinks.supported; |
There was a problem hiding this comment.
- Is this compatible with v2 and v5 turbolinks?
- What browsers are not supported?
There was a problem hiding this comment.
- 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.supportedsince 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