Skip to content

fix gwtar.js for safari#17

Open
karelbilek wants to merge 1 commit intogwern:masterfrom
karelbilek:patch-1
Open

fix gwtar.js for safari#17
karelbilek wants to merge 1 commit intogwern:masterfrom
karelbilek:patch-1

Conversation

@karelbilek
Copy link
Copy Markdown
Contributor

@karelbilek karelbilek commented Mar 1, 2026

currently, gwtar doesn't work at all in Safari (both mobile and web), because it doesn't support requestIdleCallback.

Google has some polyfill here - https://developer.chrome.com/blog/using-requestidlecallback - but that's just too complex. This works too. This fixes gwtar for safari.

https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback#browser_compatibility
https://bugs.webkit.org/show_bug.cgi?id=285049

currently, gwtar doesn't work at all in Safari (both mobile and web), because it doesn't support getMainPaheHTML.

Google has some polyfill here - https://developer.chrome.com/blog/using-requestidlecallback - but that's just too complex. This works too. This fixes gwtar for safari.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant