Skip to content
Noteshch-log
AboutSupport
< Back to notes

Browse 4 notes tagged browser APIs.

#browser APIs

AbortController: Cancel Stale Work, Not Every Error

AbortController stops work a person has superseded, but cancellation, timeouts, HTTP failures, and server-side effects need different handling. Put controller ownership in the right place first.

#browser APIs#JavaScript#async+1
2026-08-21

Navigation API: A Router Primitive, Not an SPA Mandate

The Navigation API centralises SPA navigation, but only intercept same-origin GETs your app can safely finish. Leave forms, downloads, hash links, external destinations, and unsupported browsers to ordinary navigation.

#browser APIs#SPA#progressive enhancement+2
2026-08-20

Speculation Rules: Faster Navigation Must Not Do Things Early

Speculation Rules can speed up the next MPA navigation, but prefetch and prerender have very different costs. Exclude side-effecting URLs, preserve ordinary navigation, then use activation and hit rate to decide whether to expand.

#web performance#browser APIs#progressive enhancement+2
2026-08-19

Browser Scheduler: Classify Work Before You Queue It

Scheduler gives the browser a priority hint; it is not a background thread. Keep short UI work synchronous, then choose postTask, yield, or a Web Worker from measured evidence.

#JavaScript#web performance#browser APIs+2
2026-08-18
Copyright ©2025-2026 hch-log.com. All rights reserved.
Written by Hung-Chih Hsueh ↗ · g3n-data ↗ · All links ↗
Support on Ko-fiAboutPrivacy Policy

Google services settings

Analytics and advertising stay off until you choose.

En中文