From 3a2db4744d6b6901833ccc52fb387a794f950179 Mon Sep 17 00:00:00 2001 From: Valeriy Date: Wed, 6 Mar 2019 10:00:19 +0300 Subject: [PATCH] fix(client): disable core prefetching due to scrolling performance in the map (#35512) - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp. - [x] None of my changes are plagiarized from another source without proper attribution. Closes #35418 It disables only prefetching on link become visible, other prefetching strategies like prefetching on link hover still work. --- client/gatsby-browser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/gatsby-browser.js b/client/gatsby-browser.js index 8c6bcb132f..679eb4833a 100644 --- a/client/gatsby-browser.js +++ b/client/gatsby-browser.js @@ -57,3 +57,5 @@ wrapPageElement.propTypes = { location: PropTypes.objectOf({ pathname: PropTypes.string }), props: PropTypes.any }; + +export const disableCorePrefetching = () => true;