Skip to content

Search

Articles, tools, solutions and knowledge base guides

Start typing to search across articles, tools and apps.

Frontend

Reference material for engineers and product teams. Company updates live on the Blog.

52 articles in the Frontend category

Latest articles

Progressive Web Apps (PWA): How to Build an Installable Offline App

Can a regular website open from a home screen icon and keep working without an internet connection? Yes, but installation, offline availability and data synchronization are separate concerns. We will build a public local notes app without a framework or accounts, deployed under /pwa-demo/. The examples form a single project.

Service Workers: Caching Strategies, Offline Applications and Lifecycle

A service worker runs outside the document context and can handle requests made by a controlled web application. Registering one does not make an application offline-ready. We will build a deliberately narrow fallback for a public documentation site, then choose caching policies for other resource types.

TypeScript tsconfig.json: Compiler Configuration Explained

A tsconfig.json describes a TypeScript project, not the entire execution environment. This guide connects compiler choices to the actual build, type checking and output layout, with separate examples for bundled applications, directly executed Node.js output and libraries.

TypeScript Type Guards and Type Narrowing: How to Recognize Types Safely

Why does TypeScript report a missing property when the data looks correct? An `as` assertion silences a type error but performs no runtime check. Narrowing lets the compiler derive a more precise type from conditions JavaScript actually evaluates. The examples below address forms, API boundaries and application state, using strict mode and an ES2022 environment.

HTML Forms: How to Validate Input and Handle Errors Accessibly

A form can look correct yet lose submitted values, remain invalid after a correction or fail to respond to Enter. A large validation library is not necessary for every field. Native HTML handles many constraints, while JavaScript adds business rules and better feedback. These independent examples explain what the browser guarantees and what it does not.

JavaScript Event Bubbling, Capturing and Delegation Explained

A click on a product card's button can activate both the button handler and the card handler. On a dynamic list, a newly added button may not respond at all. Both problems are related to the DOM event model. Understanding the event path helps fix the cause instead of sprinkling stopPropagation calls throughout the application. Each example is independent: place the HTML in a document and execute the JavaScript after parsing it.

CSS Container Queries vs Media Queries: How to Build Responsive Components

A product card fits in a catalog but breaks when reused in a sidebar. Adding viewport breakpoints cannot solve the underlying problem if both cards appear on the same screen. Container size queries allow components to respond to the space allocated to them. The examples below separate page-level layout from component-level layout and explain how to diagnose a query that does not apply.

CSS Specificity, Cascade and Inheritance: Why Are My Styles Not Working?

A matching selector is not a guarantee that its declaration will be used. When a button retains a vendor color, a margin disappears, or a theme token produces an unexpected result, adding !important is rarely the right starting point. Identify whether a declaration lost the cascade or failed later during value computation. Each example below has a reproducible browser outcome.