Skip to content

fix gwtar.js for safari#17

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

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.
@gwern
Copy link
Copy Markdown
Owner

gwern commented Apr 1, 2026

This may have been fixed in 50457fe "Add polyfill for requestIdleCallback() to gwtar.js, to support Safari"?

@karelbilek
Copy link
Copy Markdown
Contributor Author

karelbilek commented Apr 1, 2026 via email

@gwern gwern closed this Apr 1, 2026
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.

2 participants