Skip to content
Velloreth

#frontend

Posts tagged with “frontend”.

22 posts

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

07

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.

08

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.

09

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.

10

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.

11

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.

12

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.

13

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.

14

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.

15

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.

16

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.

17

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.

18

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.

19

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.

20

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.

21

View Transitions API: A Practical Guide

Same-document and cross-document view transitions explained — startViewTransition, view-transition-name, the @view-transition rule, and accessibility.

22

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.