Skip to content

Instantly share code, notes, and snippets.

Ran into some weird behavior with AbortController in Safari 17.

Pretty basic fetch with a timeout:

const controller = new AbortController();

setTimeout(() => controller.abort(), 3000);

try {