#frontend
Posts tagged with “frontend”.
22 posts
Code Splitting: Shipping Less JavaScript
Split a bundle so a page loads only the code it needs. Learn the route split, the dynamic import, and how to measure the result.
Core Web Vitals: LCP, INP and CLS Explained
LCP, INP and CLS measure loading, interactivity and visual stability. Learn the thresholds, the causes, and how to improve each one.
Critical CSS Explained: Faster First Paint
Inlining the above-the-fold CSS removes a render-blocking request. Learn how to extract it, inline it, and load the rest asynchronously.
The CSS Box Model Explained With Examples
Every element is a box of content, padding, border and margin. Learn how the box model works and why box-sizing changes everything.
CSS Flexbox: A Complete Practical Guide
Flexbox lays out items along one axis. Learn the container and item properties, the common patterns, and the gotchas that trip people up.
CSS Grid: Two-Dimensional Layout Explained
CSS Grid lays out content in rows and columns at once. Learn the track syntax, named areas, auto-fit, and the patterns that replace old hacks.
CSS Positioning Explained: static to sticky
Static, relative, absolute, fixed and sticky each position an element differently. Learn the containing block and the common traps.
CSS Selectors: A Practical Cheatsheet
From a class to an attribute and a pseudo-class, learn the selectors you actually use and the ones that cause a specificity problem.
CSS Units Explained: px, rem, em, vh and ch
Absolute and relative units each have a place. Learn when to use px, rem, em, vh, vw, ch and the newer viewport units in CSS.
Dark Mode in CSS: A Practical Implementation
Implement dark mode with prefers-color-scheme and custom properties. Learn the contrast, the images, and the flash of the wrong theme.
End-to-End Testing: A Practical Guide
End-to-end tests cover the critical user journeys. Learn the selectors, the flakiness fixes, and how to keep the suite small and reliable.
Fluid Typography With clamp(): A Practical Guide
clamp() scales a font size with the viewport without a media query. Learn the formula, the accessibility limits, and the pitfalls.
HTML Forms Best Practices: Inputs, Validation and UX
A form is the main way a user gives you data. Learn the input types, the native validation, the labels, and the error handling.
JavaScript Bundlers Explained: What They Actually Do
A bundler resolves imports, transforms code and writes a file the browser can load. Learn the graph, the loaders, and the output.
JavaScript DOM Manipulation: A Practical Guide
The DOM is the page as a tree. Learn the selection, the creation, the update, the events, and the performance traps.
Lazy Loading Images: Faster Pages With One Attribute
loading=lazy defers an offscreen image. Learn the attribute, the LCP trap, the placeholder, and the sizes attribute.
Long Polling Explained: Real-Time Without WebSockets
Long polling holds a request open until there is data. Learn the mechanism, the timeout, the reconnect, and the alternatives.
Progressive Web Apps: Offline, Installable and Fast
A PWA is a web app that installs and works offline. Learn the manifest, the service worker, the cache, and the install prompt.
Form Validation Patterns That Don't Annoy Users
When to validate, what to say, and how to wire errors for screen readers — blur-based checks, reward-early-punish-late, and accessible error states.
Web Accessibility: The 20% That Fixes 80% of Issues
Six failure types account for 96% of detected accessibility errors — contrast, alt text, labels, empty links and buttons, and document language.
View Transitions API: A Practical Guide
Same-document and cross-document view transitions explained — startViewTransition, view-transition-name, the @view-transition rule, and accessibility.
CSS Container Queries in Practice
Container queries let components respond to their parent instead of the viewport — setup, size vs inline-size, query units, and migration strategy.