Standard 05 of 30 · Core Web Platform
JavaScript
ECMAScript client and server runtime powering interactive browser workflows, form validation, and modern web applications.
Reviewed
Engineering Purpose
Adds stateful client interactivity where static HTML alone is insufficient.
Browser & Search Relevance
Excessive client JavaScript slows INP and delays search engine rendering if primary content depends on client hydration.
Correct Implementation Patterns
- Isolate interactive controls into small Client Components while keeping prose server-rendered
'use client';
import { useState } from 'react';
export function FilterTabs() { /* interactive leaf */ }Next.js App Router Considerations
- Default to React Server Components in App Router; apply "use client" strictly at interactive leaves.
Common Errors
- Marking root layouts or entire pages with "use client"
- Using JS click handlers instead of <a href>
Testing Methods
- Lighthouse main-thread blocking audit and raw curl HTML verification