diff --git a/Source/Turbo/WebView/turbo.js b/Source/Turbo/WebView/turbo.js index ec66870..d8c2f4e 100644 --- a/Source/Turbo/WebView/turbo.js +++ b/Source/Turbo/WebView/turbo.js @@ -169,6 +169,13 @@ this.postMessage("pageInvalidated") } + linkPrefetchingIsEnabledForLocation(location) { + // Disable link prefetching since it can be activated by link taps and + // cause double-requests across the default/modal context boundaries. We + // also don't want to prefetch links that may correspond to native screens. + return false + } + log(message) { this.postMessage("log", { message: message }) }