Steven's Knowledge
Advanced Features

Advanced Features

Advanced frontend features and native APIs — usage, problems solved, and real-world scenarios

Advanced Features

Powerful native features that are often underused in frontend development. Understanding them helps you build lighter, more performant applications without third-party dependencies.

Topics

Why Native APIs Matter

Third-Party Library                    Native API
├── Bundle size overhead               ├── Zero bundle cost
├── Dependency maintenance             ├── Built into browser/runtime
├── API may change or deprecate        ├── Web standards, long-term stable
├── Potential security vulnerabilities ├── Browser-level security
└── Learning curve per library         └── Transferable knowledge

API Landscape

CategoryAPIsPrimary Use
Component ModelCustom Elements, Shadow DOM, TemplatesEncapsulated, reusable UI components
Meta-programmingProxy, Reflect, SymbolsIntercept operations, reactive systems
ObservationIntersectionObserver, MutationObserver, ResizeObserverReact to DOM/viewport changes efficiently
ConcurrencyWeb Workers, SharedWorker, Service WorkersOff-main-thread computation, offline support
MemoryWeakRef, FinalizationRegistry, WeakMap/WeakSetCache management, leak prevention
CommunicationBroadcastChannel, MessageChannel, postMessageCross-context messaging
Control FlowAbortController, Iterators, GeneratorsCancellation, lazy evaluation, async sequences

When to reach for native APIs

  • You need the feature in multiple projects or frameworks
  • Bundle size is a concern
  • You want long-term stability without dependency churn
  • The native API fully covers your requirements

On this page