Skip to content
Front-end optimisation

Smooth Animations: Stopping Jank in the Frontend

Smooth animations without jank: frame budget at 60 and 120 Hz worked out, transform instead of top, scroll-driven animations 2026, finding jank in DevTools.

24 min read FrontendAnimationenRenderingCompositor60fps

In short and in plain language

A page can load fast and still feel jerky. You notice it when you scroll or open a menu.

Jank happens when the browser cannot finish a new frame in time.

Some kinds of motion are easy for the browser. Others force it to work out the whole page again. Good animations use only the easy kinds.

Tools in the browser help you find the parts that stutter.

Some people want to see little motion. A page can detect this setting. Then it only fades things in gently. We find the parts that stutter and make them smooth.

A website can load in a flash and still feel sluggish. The moment a menu opens, a list scrolls or a carousel glides, it is not the load time that shapes the impression but the render performance frame by frame. Jank arises when the browser fails to finish a new frame within its tight time window. At 60 frames per second, only 16.7 milliseconds remain per frame (web.dev). This article shows why just two CSS properties run cheaply on the compositor thread, how layout thrashing occurs and how to hunt down jank in the DevTools. Where the article on Interaction to Next Paint covers the reaction time to input, this one is about the visual smoothness of animations and scrolling – that is, layout, paint and composite. It reflects the state of November 2026, works through the budget for 60 and 120 hertz, places scroll-driven animations across all three major browser engines in context and covers weak devices and reduced motion.

Key takeaways

  • At 60 hertz each frame has 16.7 milliseconds, of which only about 10 milliseconds remain for your own work (web.dev); at 120 hertz the arithmetic leaves 8.3 milliseconds for the entire frame.
  • Only transform and opacity can be handled by the browser at the compositing stage alone (web.dev). Motion via top, left or width instead forces layout and paint in every frame.
  • will-change is a last resort, not a precaution (MDN Web Docs). Against layout thrashing: read all measurements first, then write all styles, and bundle visual changes in requestAnimationFrame.
  • Scroll-driven animations with animation-timeline run in Chrome from 115, Safari from 26 and, since October 2026, Firefox from 159 (MDN Browser Compat Data); with transform and opacity they can run off the main thread (Chrome for Developers).
  • The frames track in the performance panel shows dropped frames in red (Chrome for Developers). The Long Animation Frames API only reports from 50 milliseconds (Chrome for Developers), three frames at 60 hertz.
  • About half of all pages query prefers-reduced-motion (Web Almanac 2025). Under WCAG 2.2, motion that starts automatically and runs alongside other content for more than five seconds must be possible to pause, stop or hide (W3C).

The 16.7 ms budget: why 60 fps leaves so little time

A typical display refreshes its image 60 times per second. The browser therefore has to deliver a finished frame every 16.7 milliseconds – that follows from 1000 milliseconds divided by 60 (web.dev). Part of that window goes to the browser's own overhead, so in practice only around 10 milliseconds per frame are left for your own work (web.dev). Exceed this budget and the frame cannot be finished in time: the image stalls, jumps or shudders – the effect users perceive as jank. Besides 60 hertz, MDN lists 75, 120 and 144 hertz as widely used refresh rates (MDN Web Docs). At 120 hertz the window halves to roughly 8.3 milliseconds by simple arithmetic – and that is for the entire frame, not just your share of it.

Unlike load time, what counts here is not a single point in time but consistency across many frames. A 60 fps animation feels fluid because every frame arrives on schedule. If just every third frame is dropped because a calculation runs too long, the perceived frame rate falls noticeably and the motion feels choppy. The browser then discards frames to catch up – visible as a jump. This is exactly why render performance is its own discipline within frontend optimization, one that faster loading alone cannot solve.

Worked example: the same animation at 60 and 120 hertz and on a throttled CPU

A worked example makes the orders of magnitude tangible. Assume a hover animation across a product list costs, per frame on the developer machine, 1 millisecond for style, 3 for layout and 2 for paint – 6 milliseconds in total. At 60 hertz that fits comfortably into the budget of about 10 milliseconds. For low-end mobile devices the Chrome DevTools documentation recommends 20x CPU throttling, while its tutorial works with 4x (Chrome for Developers). By arithmetic that turns into 24 or 120 milliseconds per frame. The per-frame work figures are assumptions and serve only the calculation.

ScenarioWork per frame (assumed)Time window per frameCalculated result
Developer machine, 60 Hz6 ms16.7 ms, of which about 10 ms usablefits, steady 60 frames per second
Developer machine, 120 Hz6 ms8.3 ms for the entire frametight, 2.3 ms left for the browser
CPU throttled 4x, 60 Hz24 ms16.7 mseach frame needs two refresh cycles, about 30 instead of 60 frames per second
CPU throttled 20x, 60 Hz120 ms16.7 msmore than seven cycles per frame, fewer than 10 frames per second
Same motion via transformno layout, no paint per frame16.7 msthe compositor assembles the frames

Two conclusions follow. A higher refresh rate moves the limit: what has headroom at 60 hertz becomes tight at 120 hertz without any change to the code. And every millisecond of layout and paint multiplies on weaker hardware, whereas motion via transform does not request that work at all.

Load time and render smoothness are two separate jobs

A page can have a very good LCP value and still jank when scrolling. Load time measures how quickly the first impression appears; render smoothness measures whether every subsequent motion stays within the 16.7 ms beat. Both goals require different measures – this article focuses on the second job, the work done per frame.

The rendering pipeline: from JavaScript to pixel

To turn HTML and CSS into visible pixels, the browser runs through a fixed sequence of steps – the so-called rendering pipeline (web.dev). It begins with the execution of JavaScript, which often triggers the visual change. Then follow four phases: Style calculates which CSS rules apply to each element. Layout determines the size and position of every element – a change here can affect the geometry of large parts of the page. Paint fills in the pixels with colors, text and images. Composite finally assembles the individual layers into the finished image (web.dev). The order is decisive: the earlier in this chain a change starts, the more follow-up work it triggers.

Style

The browser determines which CSS rules apply to each element – color, size, visibility and more. Changes to selectors or inherited values kick off this phase.

Layout

Here the size and position of every element are computed. Because elements influence one another, a single change can re-trigger the geometry of large parts of the page – the most expensive phase.

Paint

The browser fills in the pixels: text, colors, borders, shadows and images are drawn into layers. Large or complex areas cost noticeable time here.

Composite

The finished drawn layers are assembled into the visible image. This step runs particularly efficiently and can hand parts of the work to the graphics card.

The cheapest path through the pipeline therefore avoids both layout and paint and limits itself to compositing (web.dev). Anyone who designs a motion so that it touches only the last phase saves the browser the expensive geometry recalculation and pixel redraw in every single frame. That is the core of every jank-free animation – and the reason why the choice of the animated property matters far more than the number of animations.

Only transform and opacity: the compositor thread

According to web.dev there are exactly two properties whose change the browser can handle on the compositing stage alone: transform and opacity (web.dev). The prerequisite is that the moving element sits on its own compositor layer. Every other property pulls work forward in the pipeline – either a new paint or, more expensively, a full layout pass. So to lift a card on hover, move it with transform: translateY() rather than the top property, and fade it in or out via opacity rather than visibility tricks.

CSS propertyTriggersHandled onCost per frame
transformcomposite onlycompositor threadvery cheap
opacitycomposite onlycompositor threadvery cheap
color, background-colorpaint + compositemain threadmedium
box-shadow, border-radiuspaint + compositemain threadmedium to high
width, height, paddinglayout + paint + compositemain threadhigh
top, left, marginlayout + paint + compositemain threadhigh

The reason for this difference lies in the browser's architecture. Compositing can run on its own thread and with support from the graphics card, independent of the heavily loaded main thread. transform and opacity only change how an already drawn layer is positioned or made transparent – the content of the layer itself stays unchanged (web.dev). Animating width or top, by contrast, forces the browser to recompute the geometry and redraw the affected areas in every frame. On complex pages that is often enough to blow the 10-millisecond budget and produce visible jank. There is also a side effect on the Core Web Vitals: non-composited animations can increase Cumulative Layout Shift because they actually move elements, while composited animations are excluded from CLS (Chrome for Developers). The article on avoiding layout shift shows how closely geometry changes and visual disturbances are linked.

compositor-vs-layout.css
/* Expensive: forces layout and paint in every frame */
.card-slow {
  transition: top 200ms ease, width 200ms ease;
}
.card-slow:hover {
  top: -8px;
  width: 320px;
}

/* Cheap: runs on the compositor thread */
.card-fast {
  transition: transform 200ms ease;
}
.card-fast:hover {
  transform: translateY(-8px) scale(1.03);
}

will-change with intent, not blanket coverage

For an animation to touch only compositing, the element must sit on its own layer. The browser usually creates such layers itself the moment it needs them. With the CSS property will-change you can tell the browser in advance that a certain property is about to change, so it prepares the layer in time. This can smooth the first frame of an animation, because the preparation no longer falls in the middle of the motion. The benefit quickly flips into its opposite, however, if will-change is used too broadly.

will-change is a last resort, not a default

According to the MDN Web Docs, will-change should be used sparingly and as a last resort against existing performance problems – not preventively (MDN Web Docs). Every layer created this way costs memory and management overhead. A rule like * { will-change: transform; } across all elements creates countless layers, and on devices with limited memory the damage can far outweigh the benefit (web.dev).
will-change-intent.js
// Set will-change just before the animation and remove it afterwards
const panel = document.querySelector('.panel');

panel.addEventListener('pointerenter', () => {
  panel.style.willChange = 'transform';
});

panel.addEventListener('transitionend', () => {
  // Release the layer again - saves memory
  panel.style.willChange = 'auto';
});

The right approach is therefore surgical: apply will-change only to the few elements that actually move, and release the layer again after the animation. For short, infrequent transitions it is often enough to omit will-change entirely, because the browser creates the layer in time anyway. Whether a promotion pays off can be read from the number of compositor layers in the DevTools.

Avoid layout thrashing: read first, then write

Even when animations cleanly use transform, JavaScript can slow down the main thread. A common pattern is the forced synchronous layout: the code changes a style and immediately afterwards reads a layout property such as offsetWidth or getBoundingClientRect (web.dev). Because the browser needs to know the current layout to answer, it recomputes it right away instead of waiting for the next frame. If this happens repeatedly in quick succession – for instance in a loop – it is called layout thrashing: the browser recomputes the same geometry over and over and loses precious milliseconds.

read-then-write.js
// Layout thrashing: reads and writes alternate (slow)
elements.forEach((el) => {
  const width = el.offsetWidth;          // reading forces layout
  el.style.width = width + 20 + 'px';    // writing invalidates layout
});

// Better: first all reads, then all writes
const widths = elements.map((el) => el.offsetWidth); // read only
requestAnimationFrame(() => {
  elements.forEach((el, i) => {
    el.style.width = widths[i] + 20 + 'px';            // write only
  });
});

The solution is to separate reads and writes: first gather all measurements, then make all changes (web.dev). That way the browser has to recompute the layout at most once instead of once per element. On large DOM structures a lean structure pays off on top of this – the fewer nodes the browser has to consider in a layout pass, the faster it finishes. How to achieve that is described in the article on reducing DOM size.

The rule of thumb: batch instead of alternate

Arrange DOM accesses so that all reads run together and all writes run together. A single switch between writing and reading in the middle of a loop can trigger a forced layout and turn a fast interaction into a janky one. The principle is easy to remember and one of the most effective levers against jank on the main thread.

requestAnimationFrame: animate in time with the display

Anyone driving a motion in JavaScript should couple it to the display's refresh via requestAnimationFrame. The browser calls the supplied function right before the next repaint and synchronizes it with the frame rate (MDN Web Docs). This has two advantages: the animation runs at the right beat – roughly every 16.7 milliseconds at 60 Hz, correspondingly more often at 120 Hz – and the browser automatically pauses the calls as soon as the tab moves to the background. The classic approach with setInterval or setTimeout does not know the frame rate and therefore delivers either too many or too few updates, which shows up as jank.

For effects that depend on scrolling, a related rule applies: the actual visual change belongs in a requestAnimationFrame callback, while the scroll listener itself only records the current value. That way the expensive work runs at most once per frame instead of on every single scroll event. In addition, passive event listeners keep the scroll path clear, because the browser does not have to wait for a possible cancellation of the default behavior. Combined, these techniques let even data-heavy interfaces scroll smoothly.

Smoothness does not come from computing more, but from computing at the right moment and with the right properties. The screen sets the beat – our job is to have every frame finished before the budget runs out.

From project work on frontend performance

State of 2026: scrolling and page transitions without main-thread work

For a long time, any motion that follows scrolling was a job for JavaScript: a scroll listener read the position and wrote new styles. Chrome for Developers names the weaknesses itself: the browser performs scrolling in a separate process and delivers the events asynchronously, and main-thread animations are subject to jank (Chrome for Developers). Since Chrome 115, scroll and view timelines link a CSS animation declaratively to the scroll position or to an element's visibility, and they can run off the main thread (Chrome for Developers).

Whether you can use it in a shop depends on browser support. According to MDN's compatibility data, Chrome has handled the animation-timeline property since version 115 from July 2023, Safari since version 26 from September 2025 and Firefox since version 159 from October 27, 2026 (MDN Browser Compat Data). That puts all three major browser engines on board. Older versions do not know the technique; it therefore belongs in an @supports block, and the page has to stay fully usable without it. The example grows a reading progress bar via transform: scaleX() rather than width, as in the Chrome for Developers case study.

reading-progress.css
/* Reading progress without a scroll listener: transform only, no width */
@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    transform-origin: 0 50%;
    animation: progress auto linear forwards;
    animation-timeline: scroll(block root);
  }
}

The same principle applies one level up, to page navigation. Cross-document view transitions cross-fade between two same-origin pages without a script driving the transition; Chrome has supported them since version 126 (Chrome for Developers). For the @view-transition rule, MDN's compatibility data lists Safari from 18.2, while Firefox so far only carries it in its preview version (MDN Browser Compat Data). And if a navigation takes longer than four seconds in Chrome, the transition is skipped (Chrome for Developers). Setup and the effect on CLS are covered in the article on view transitions in the shop.

MotionRecommended approachMain thread per frameWatch out for
Hover, focus, tapCSS transition on transform and opacitynot neededfade in shadows via a prepared layer with opacity
Menu, drawer, dialogtransform (translate) plus opacitynot neededwill-change only while moving
Progress, parallax, reveal on scrollanimation-timeline with scroll() or view()not needed with transform and opacity@supports as a safeguard, fully usable without animation
Page navigationcross-document view transitionscontrolled by the browserkeep navigation under four seconds
Dragging, swiping, physicsJavaScript with requestAnimationFrame, write transform onlyincluded compute progress from the timestamp
Expanding height or widthkeep it short or remap to transform with the FLIP principleincluded small areas only, no long lists

The last row is the inconvenient one, because some motion genuinely changes dimensions. For that case web.dev points to the FLIP principle, which remaps expensive animations to changes in transform and opacity (web.dev): measure once, then play the way there as a transform instead of recalculating in every frame.

Hunting down jank in the DevTools

Jank cannot be guessed; it has to be measured. In its Frames track, the performance panel of Chrome DevTools assigns every frame to one of four types: white for an idle frame with no changes, green for in time, yellow with a dashed pattern for partially presented, and red for dropped (Chrome for Developers). Partially presented means, for example, that the compositor thread was on time while scrolling but the main thread's work came too late (Chrome for Developers). In the Main section, rendering work such as layout appears purple, and a red triangle marks a warning (Chrome for Developers).

  1. Throttle the CPU under Capture settings: 4x for a first impression, 20x for low-end mobile devices (Chrome for Developers)
  2. Record while the janky interaction runs several times
  3. Click red and yellow frames in the Frames track and read their duration in the Summary tab
  4. Below them, in the Main section, assign the layout and paint blocks to their respective phase
  5. In the Insights tab, open Forced reflow and the layout shifts; a click marks the spot in the recording (Chrome for Developers)
  6. In the Rendering tab, turn on paint flashing and the frame rate overlay
  7. After the rework, record again with the same throttling and compare the frames tracks

Forced layouts have their own evaluation: the Forced reflow insight passes when no forced reflow takes longer than 30 milliseconds (Chrome for Developers). For animations that threshold is generous. A forced reflow of, say, 12 milliseconds per frame already blows the budget of about 10 milliseconds without the insight flagging it. The same cause can also be spotted among real visitors: the Long Animation Frames API reports, through the forcedStyleAndLayoutDuration attribute, how much time a script spent on forced style and layout (web.dev).

Paint flashing in the Rendering tab highlights every repainted area in color – if half the page flashes during an animation, too much is being redrawn; the frame rate overlay gives a running estimate of the current frame rate (Chrome for Developers). Under Avoid non-composited animations, Lighthouse names the affected elements together with the reason why the browser could not move them to the compositor (Chrome for Developers). Together these tools turn a diffuse jank into an addressable cause – the starting point of any solid performance analysis.

Long Animation Frames: what field measurement sees and what it misses

Among real visitors, the Long Animation Frames API measures delayed frames, but only once the rendering update is delayed beyond 50 milliseconds (Chrome for Developers); in Chrome it has been available since version 123 (Chrome for Developers). For smoothness that is a coarse threshold: 50 milliseconds equal three frames at 60 hertz and six at 120 hertz. An animation with frames of 20 to 30 milliseconds janks visibly and is still missing from the field data. The documentation also notes that such smoothness problems cannot be solved by breaking up work but only by reducing it (Chrome for Developers).

That makes the division of labor clear. Field measurement shows on which pages and in which interactions frames seriously stall, and mainly serves the hunt for INP bottlenecks with Long Animation Frames. The fine-grained jank below the threshold only shows up in a lab recording. To check first whether there is a problem at all, open the live metrics in DevTools and then record the conspicuous interaction in a targeted way.

Weak devices, 120 hertz and less motion

For animations, the developer machine is a deceptive yardstick, because it handles main-thread work faster than most visitors' devices. CPU throttling has limits: it is relative to your own computer, so the 2x option halves its speed, and it cannot truly simulate mobile processors because their architecture is very different (Chrome for Developers). Custom presets for low- and mid-tier mobile devices, which the panel creates under Calibrate, get closer (Chrome for Developers). In the end the real target device is what counts; how to choose it and derive a budget is shown in the article target device, not test device.

At 120 hertz a programming mistake surfaces that goes unnoticed on 60-hertz devices. requestAnimationFrame is generally called as often as the display refreshes (MDN Web Docs). An animation that advances by fixed pixels per call therefore runs faster on high refresh-rate screens (MDN Web Docs) – at 120 instead of 60 hertz, twice as fast by arithmetic. Computing the position from the timestamp passed in avoids the problem.

Not every visitor wants to see motion. The prefers-reduced-motion media query detects whether the operating system is set to minimize non-essential motion; scaling or panning large objects can trigger discomfort for people with vestibular motion disorders (MDN Web Docs). About half of all pages query the setting: 50.55 percent of mobile and 49.99 percent of desktop pages in the HTTP Archive dataset (Web Almanac 2025). Less motion does not mean no feedback: instead of sliding, an element briefly fades in via opacity, which the compositor handles cheaply anyway.

reduced-motion.css
/* Default: the menu slides in via transform */
.menu {
  transition: transform 250ms ease-out, opacity 250ms ease-out;
}

/* Less motion requested: just fade in briefly, no sliding */
@media (prefers-reduced-motion: reduce) {
  .menu {
    transition: opacity 150ms linear;
  }
}

For carousels, tickers and animations that start automatically there is also a firm rule. If moving information starts automatically, lasts more than five seconds and is presented in parallel with other content, WCAG 2.2 requires a mechanism to pause, stop or hide it in success criterion 2.2.2 at Level A (W3C). Criterion 2.3.3 at Level AAA goes further: motion animation triggered by interaction should be possible to disable unless it is essential (W3C).

A typical de-janking path in practice

A recurring pattern illustrates how the measures work together. Starting point: an online shop shows clear jank when its mega menu opens and when hovering over product tiles. The recording in the performance panel reveals dropped frames as soon as the tiles animate. The cause: the hover effect moves the tiles via the top property and simultaneously fades in a soft box-shadow – both force layout and paint respectively in every frame (example, not a client project). On a long product list this work adds up until the frame budget tears.

The rework starts at three points. First, the hover effect is switched from top to transform: translateY() and the shadow is handled via an already present shadow layer faded in and out with opacity, so the motion only touches compositing. Second, the active tile receives a targeted will-change just before the animation and releases it afterwards. Third, a scroll-dependent effect calculation is moved into a requestAnimationFrame callback. The goal is for the interaction to run in step with the display again without removing a single feature (example, not a client project). Comparable starting points meet us across shop and website projects, for instance in Shopware performance or with WordPress bottlenecks.

Before and after: the off-canvas menu on a smartphone

A second common pattern shows the rework in code (example, not a client project). On a smartphone, a menu slides in from the left by animating the left property from minus 320 pixels to 0; at the same time its box-shadow grows with it. Both trigger work before compositing in every frame: left changes the geometry and forces layout, box-shadow a new paint (web.dev). The version afterwards moves the same menu via transform and fades in a pre-drawn shadow via opacity.

menu-before-after.css
/* Before: left forces layout, box-shadow a new paint - in every frame */
.menu-before {
  position: fixed;
  left: -320px;
  width: 320px;
  transition: left 300ms ease, box-shadow 300ms ease;
}
.menu-before.open {
  left: 0;
  box-shadow: 0 0 40px rgb(0 0 0 / 0.4);
}

/* After: transform and opacity only, the shadow sits ready on its own layer */
.menu-after {
  position: fixed;
  left: 0;
  width: 320px;
  transform: translateX(-100%);
  transition: transform 300ms ease;
}
.menu-after::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 0 40px rgb(0 0 0 / 0.4);
  opacity: 0;
  transition: opacity 300ms ease;
}
.menu-after.open { transform: translateX(0); }
.menu-after.open::after { opacity: 1; }
  1. Use the same device and the same throttling level for both versions, for example 4x on the computer plus a real mid-range smartphone
  2. Open and close the menu five times per recording, and make three recordings per version
  3. Count the red and yellow frames in the frames track and note the longest frame
  4. Check in the Main section whether layout or paint events still appear during the motion
  5. Confirm in Lighthouse that the menu has disappeared from the list of non-composited animations

How many frames the rework saves only a measurement on your own device can tell. One test criterion is fixed in advance, though: during the menu motion no layout events may appear any more, because transform does not trigger layout (web.dev). If dropped frames remain, the cause lies elsewhere, for example in a script that loads content when the menu opens.

Render smoothness and interactivity complement each other

Jank-free animations and fast reaction times are related but not the same. An animation on the compositor thread does not block the main thread and thus leaves room to process input, whose response time the Interaction to Next Paint measures. A value of 200 milliseconds or less counts as good there (web.dev). Taking work off the main thread therefore improves the frame rate and the reaction time at once.

Keeping animations smooth for good

A good state is not a final state. Every new component, every design update and every additional script can animate an expensive property or slip in a forced layout. That is why render performance belongs in a fixed routine: before every larger release, check the critical interactions in the performance panel and keep the number of animated non-compositor properties low. A performance budget can stipulate that animations use transform and opacity only – deviations then surface in the review before they go live. That way the smoothness once achieved is preserved across many versions and fits a measurable Core Web Vitals strategy.

The biggest gains usually come where diagnosis and implementation go hand in hand: first make the janky frames visible in the tool, then swap out the offending properties, finally measure the result again. We put exactly this triad into practice in frontend optimization for shops and corporate websites – embedded in a broader range of performance services. A free initial assessment shows where the render performance of your most important templates stands.

Sources and Studies

This article is based on data from: web.dev (Rendering performance, Stick to compositor-only properties and manage layer count, Avoid large, complex layouts and layout thrashing), Chrome for Developers (Analyze runtime performance, Performance features reference, Forced reflow, Avoid non-composited animations, Long Animation Frames API, Animate elements on scroll with Scroll-driven animations, A case study on scroll-driven animations performance, Cross-document view transitions for multi-page applications), MDN Web Docs (will-change, requestAnimationFrame, prefers-reduced-motion), MDN Browser Compat Data (animation-timeline, @view-transition), HTTP Archive Web Almanac 2025 (Accessibility chapter) and W3C (WCAG 2.2). The technical details reflect the state as of November 2026.

Related Articles

Front-end optimisation

Style Recalculation: When CSS Slows the Browser Down

Why style calculation costs time at runtime, how Selector Stats and Long Animation Frames make its share visible, and which changes actually shrink the scope.

14 min read
Core Web Vitals & measurement

Reduce DOM Size: Fewer Nodes, Faster Interactions

Reduce DOM size: cut style and layout work with pagination, virtualization, content-visibility and flatter markup to improve INP and Core Web Vitals.

12 min read
Front-end optimisation

Less JavaScript: Dialogs and Popovers Straight in HTML

Dialogs, menus and filter drawers without custom scripts: how command and commandfor work, which fallback older browsers need and what it all means for INP.

17 min read