gatsbyjs/gatsby

Blank white pages loading on gatsbyjs.com on Safari browsers (MacOS and iOS)

Closed this issue · 2 comments

Preliminary Checks

Description

Not sure if this is the right place to report this, but routing seems to be broken for Safari browsers (desktop and mobile) on the gatsbyjs.com production site. I was trying to browse docs, and all relative links just load a blank white page. Page reload is required to get it back. Other browsers work fine.

There is an error in the console ReferenceError: Can't find variable: cancelIdleCallback. It looks like this method is not supported in Safari only (https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback).

Reproduction Link

https://www.gatsbyjs.com

Steps to Reproduce

  1. Go to gatsbyjs.com in a Safari browser (MacOS or iOS)
  2. Click any relative link

Expected Result

Links should load pages normally

Actual Result

Blank white page loads. JS error in console: ReferenceError: Can't find variable: cancelIdleCallback.

Environment

Safari browsers on MacOS and iOS

Config Flags

No response

I believe I have run into this issue, and it seemed related to this
angular/angular#53721

which I resolved locally by setting a development feature flag, seen here
Screenshot 2024-09-02 at 1 49 53 PM

Thanks for that workaround, confirmed it resolves the issue. I’ll close this assuming that feature is eventually activated by default.