# Glossary

## Resumability

Qwik serializes application state and event listeners into the HTML during SSR, so the client continues exactly where the server stopped without re-running component code.

## QRL

A Qwik URL: a serializable, lazy reference to code — most commonly a `$`-wrapped function — that the browser preloads and runs only when it is actually needed.

## VNode

Qwik's virtual node: a lightweight description of a rendered DOM node that the runtime uses to update output without re-running whole components.

## Hydration

The step other frameworks run on the client to make server-rendered HTML interactive: they re-execute components and reattach listeners. Qwik avoids this by resuming from serialized state.

## Hydration mismatch

An error in hydration-based frameworks when the client render produces different markup than the server sent, breaking listeners or layout. Qwik avoids it by resuming the existing DOM.

## Serialization

Converting application state, event listeners, and framework data structures into text embedded in the HTML, so the browser can resume from it instead of rebuilding everything in memory.

## Lazy loading

Downloading and running code only at the moment it is actually needed instead of up front. Qwik splits an app into many lazy-loadable chunks and the runtime fetches each one on demand.

## SSR

Server-side rendering: generating a page's HTML on the server so the user sees content immediately. Qwik serializes the app state into that HTML so the client can resume without re-rendering.

## CSR

Client-side rendering: building the page in the browser with JavaScript after load, so users wait on a blank shell until the bundle downloads and runs. The opposite trade-off from SSR.

## Signal

Qwik's reactive state primitive, created with useSignal(). Reading a signal subscribes the surrounding code, so when its value changes only the exact DOM or task that depends on it updates.

## Preloading

Fetching the JavaScript a user is likely to need next into the browser cache ahead of time, so it is already there when they interact. Qwik preloads bundles based on likely next interactions.

## SSG

Static site generation: rendering pages to static HTML at build time rather than per request, so they can be served straight from a CDN with no running server. Qwik Router can prerender routes.

## Optimizer

Qwik's build-time compiler (written in Rust) that splits components at every $ boundary into separate lazy-loadable chunks and generates the QRLs that reference them.

## Streaming

Sending the HTML response to the browser in chunks as it is produced instead of waiting for the whole page. Qwik supports out-of-order streaming so slower sections don't block the rest.

## Container

A self-contained, independently resumable region of a Qwik app in the DOM. A single page can host several containers, each serialized and resumed on its own.

## Reactivity

How Qwik tracks which signals and stores each piece of UI reads, so a state change updates only the exact DOM nodes or tasks that depend on it — with no whole-component re-render.

## Content projection

The mechanism by which a component receives JSX content from its parent and projects it into designated Slot locations in its template, keeping parent and child rendering independent.

## JSX

A syntax for expressing component templates in Qwik by writing HTML-like markup directly in JavaScript, which the compiler transforms into function calls. JSX is just syntax — not a virtual DOM.

## Immutable props

The constraint that props in Qwik components are shallowly immutable: primitive values cannot be reassigned once passed, though properties of objects and arrays can be modified.

## Prop drilling

The pattern of passing data through a chain of intermediate components that don't use it themselves, only to reach a descendant that does. Context APIs solve this problem in Qwik.

## Class binding

The ability to pass the class attribute an object mapping CSS class names to boolean conditions, so classes are applied only when their conditions are true.

## dangerouslySetInnerHTML

A Qwik prop for inserting raw HTML into the DOM (replacing innerHTML). Its deliberately alarming name warns that injecting untrusted HTML exposes the app to cross-site scripting (XSS).

## Invalidate

Marking a component or task to re-run or re-render because its tracked state changed. Qwik queues invalidated work and flushes it as a batch rather than synchronously.

## Proxy

A JavaScript Proxy object created by useStore() that wraps application state and automatically tracks which components and tasks read each property, creating fine-grained subscriptions.

## Track

A function passed to useTask$() and useVisibleTask$() that marks which signals, stores, or computed values should be watched. When tracked state changes, the task re-executes.

## Subscription

An automatic relationship registered when a component or task reads a signal or store property, causing that component or task to re-execute or re-render when the property changes.

## Scheduler

Qwik's internal system that queues and orders the execution of tasks, component renders, and DOM updates, batching related work for efficiency.

## Paused state

The initial state of a Qwik container after server-side rendering, serialized with application state and event listeners ready to resume on the client. Marked by q:container="paused" in HTML.

## Resumed state

The active state of a Qwik container after the client deserializes the server-serialized state and listeners from the HTML and begins executing event handlers and tasks.

## Qwikloader

A tiny (~1 kb) inlined JavaScript runtime that sets up global event listeners and lazy-loads event handlers on demand by searching the DOM for QRL attributes and fetching the corresponding code chunks.

## Out-of-order streaming segment

A chunk of HTML sent independently during out-of-order streaming when a Pending boundary resolves asynchronously, allowing faster sections to reach the browser immediately without waiting for slower async content.

## Serialization boundary

A lexical scope boundary marked by a $ function wrapper where only serializable data can cross; trying to capture non-serializable values (like custom class instances) will cause a runtime error.

## qwik/json script

A script tag with type='qwik/json' that embeds the serialized application state, listeners, and component tree information into the HTML so the client can resume without re-running components.

## DAG

Directed acyclic graph: a tree structure with no circular references. JSON only serializes DAGs; Qwik overcomes this limitation by properly handling circular object references in application state.

## Island architecture

A technique where developers manually mark isolated interactive regions of an otherwise static page and choose when each island activates. Qwik avoids islands, resuming the whole app from serialized state.

## Chunk

A JavaScript file containing one or more lazy-loadable symbols. Qwik bundles related symbols together into chunks to balance download size and request overhead.

## Bundle

A compiled JavaScript file containing one or more symbols packaged together for delivery. Bundles are generated by Qwik's optimizer and downloaded by the browser on demand.

## Entry point

A file or location where the bundler begins processing code — typically the root component or library export. In Qwik, can refer to client entry, SSR entry, or bundler configuration entry.

## Qwik Vite plugin

The Vite integration plugin (qwikVite()) that enables Qwik to automatically split components into lazy-loadable chunks and configure bundle optimization strategies.

## Tree-shaking

A bundler optimization that removes unreferenced code from the final bundle. Qwik's optimizer enables tree-shaking by breaking direct references between components into QRLs.

## Library mode

Vite's build mode for creating reusable component libraries. Qwik libraries use it to export components as .qwik.mjs files that integrate with the Qwik optimizer.

## Colocation

Placing related symbols together in the same bundle so they load together. Qwik's bundler groups symbols used together in the same chunk to minimize the number of download requests.

## Service Worker

A background JavaScript process that Qwik uses to prefetch bundles into the browser cache before user interactions, reducing latency when event handlers are needed.

## Network Waterfall

Sequential, dependent requests where modules cannot start downloading until previous modules finish. Qwik reduces waterfalls via speculative prefetching and the manifest's import graph.

## Eagerness

The timing strategy for when a qwikified React island or component should be downloaded and made interactive, such as on load, idle, visible, hover, or via a signal.

## client: directives

JSX attributes that control when a qwikified React component is downloaded and made interactive in the browser: client:load, client:idle, client:visible, client:hover, client:signal, client:event, or client:only.

## Partytown

A tool that moves third-party scripts like Google Analytics onto a web worker, preventing them from blocking the main thread during initial page load.

## MPA

Multi-page application: a traditional web app where each page navigation loads a fresh HTML page from the server. Qwik supports MPA navigation alongside SPA for maximum flexibility.

## SPA

Single-page application: a web app that navigates without full page reloads by updating the DOM on the client. Qwik lets you choose SPA navigation per-link and maintains best-in-class scroll restoration.

## SPA navigation

Client-side page transition using the Link component or useNavigate() hook instead of a full page reload. In Qwik apps, users are automatically upgraded to SPA mode when using these methods.

## Dynamic route

A route with variable URL segments marked with square brackets, like [id] or [...slug], that match multiple URLs and extract values into params. Use dynamic routes for flexible patterns like /products/123.

## Static route

A route with a fixed URL path defined by directory names, like /docs/getting-started. Each static route matches only its exact pathname, unlike dynamic routes with variable segments.

## Scroll restoration

Automatically returning the user to their previous scroll position when navigating back in history. Qwik provides best-in-class scroll restoration for SPA navigation based on browser history.

## sharedMap

A scoped Map available in request handlers that persists data across middleware functions and loaders for a single HTTP request. Useful for sharing authentication state or logging context between handlers.

## cacheControl

A convenience function in request handlers to set HTTP Cache-Control headers (maxAge, sMaxAge, staleWhileRevalidate, public/private). Controls how browsers and CDNs cache page responses.

## Stale-while-revalidate

A cache strategy that serves stale cached content to users immediately while revalidating it in the background. Enables instant page loads while keeping content fresh without the user waiting for revalidation.

## XSS

Cross-site scripting: an attack where malicious code is injected into a webpage and runs in other users' browsers. CSP and output escaping help prevent XSS attacks.

## CSRF

Cross-site request forgery: an attack that tricks a user into making an unintended request to a website where they're authenticated, often using hidden forms or image tags.

## CSP

Content Security Policy: an HTTP header that tells the browser which sources of scripts, styles, images, and other resources are trusted, helping prevent XSS and data injection attacks.

## Nonce

A random, unique token generated per request and added to CSP directives and inline scripts to allow only those specific scripts to run, blocking unauthorized inline code.

## View Transition API

A browser API that animates smooth visual transitions between page states, creating a native view-to-view animation without full page reloads.

## FormData

A built-in JavaScript interface for serializing form fields into key-value pairs, commonly used for multipart file uploads and programmatic form submission.

## Popover

An HTML API that opens a floating box anchored to a trigger element in the top layer, supporting modal and non-modal popovers with automatic positioning and click-outside dismiss.

## Top layer

A special stacking context above all other page content where popovers, modals, and dialogs render to ensure they stay visible and receive focus without z-index conflicts.

## prefers-color-scheme

A CSS media query that detects whether the user prefers a dark or light color scheme at the OS level, enabling sites to match system appearance preferences.

## AbortSignal

A browser API that allows canceling asynchronous operations like fetch requests or timers, commonly used with AbortController to clean up in-flight requests on navigation or component unmount.

## Adapter

A Vite configuration plugin tailored to a specific hosting platform (Cloudflare, Netlify, Vercel, AWS Lambda, etc.) that handles build output format and server integration.

## Edge functions

Code that runs on a CDN's edge servers geographically close to visitors, enabling fast server-side logic execution without traditional server latency.

## Serverless functions

Stateless, on-demand code execution (e.g. AWS Lambda) that scales automatically, where you pay only for the time code runs without managing servers.

## Edge runtime

A lightweight JavaScript execution environment (e.g. V8-based) running on edge servers that supports a subset of web APIs and prioritizes fast cold starts.

## Cold start

The latency experienced when a serverless or edge function instance initializes for the first time, before executing user code.

## Micro-frontend

An architecture pattern where multiple independent front-end applications run together in a single page, each managing its own functionality and lifecycle.

## ORIGIN

An environment variable set to the site's origin (e.g. https://example.com/) for resolving relative URLs and validating request origins during CSRF protection.

## Platform bindings

Named connections to cloud resources (KV stores, databases, buckets) configured on the hosting platform and accessed through the platform object in route handlers.
