Jankless.

This page's own frame rate

60

frames per second. This page is measuring itself on your device.

Jankless measures four things: input to paint, long frames, dropped frames and blank rows.

Find out which function made your page janky

When a check gets worse, Jankless lists the element you clicked, the script that ran and the function inside it, with the file and line number.

In React and Angular the browser only names the framework's event dispatcher, so Jankless uses the CPU profile to name your own handler. It follows your source maps when the build is minified.

"checkout" is less smooth than its baseline:
  input-to-paint (p95) 64ms (+48ms, +300%),
  slowest: click on button#heavy

Scripts blocking the interaction:
  1. onHeavyClick in click.js
     (BUTTON#heavy.onclick): ran 60ms,
     12.6ms of it blocking,
     during click on button#heavy

Start measuring your Playwright tests with one line of code

tests/fixtures.ts

withJankless(base, { auto: true })

Let your coding agent find the jank and fix it

The MCP server lets a coding agent measure an interaction, change the code, and measure again to check that the change helped. It measures in the Chrome you already have installed.

npm install -D jankless-mcp
claude mcp add --transport stdio \
  jankless -- npx jankless-mcp
  1. The agent measures the click
  2. It finds the slow function
  3. It changes the code
  4. It measures the click again

An example chat with a coding agent

  1. You: The filters panel is slow to open. Can you make it faster?
  2. Agent: I'll measure it first so I have a baseline.
  3. The agent calls jankless measure_interaction url: "http://localhost:5173/products", click "#filters"

    Recorded a baseline for "click #filters on /products"

  4. The agent calls jankless get_hot_functions "click #filters on /products"

    onFilterClick in app.js used the most CPU

  5. Agent: Most of the time was in onFilterClick, so I've changed that. I'll measure the click again.
  6. The agent calls jankless compare_baseline

    "click #filters on /products" is smoother than its baseline:
      input-to-paint (p95) 32ms (−64ms, −66.7%),
      slowest: click on button#filters
    No clear change:
      frames on time 96% (+1.2 points)
    
    Measured in full mode, CPU slowed 4x, the median of 5 runs.
  7. Agent: The click now paints in 32ms. It took 96ms before my change.

Get nearly the same result every time you run it

Get a comment on any pull request that makes your page janky

1 got worse, 4 within baseline

An example of the results in a pull request comment
Measurement Check Now Baseline
filters › "open filters" input-to-paint (p95) 176ms (+67ms, +61.5%) 109ms
search › "type" input-to-paint (p95) 104ms (−5ms, −4.6%) 109ms

Scripts blocking the interaction: onFilterClick in app.js (BUTTON#filters.onclick) ran 108ms, 58ms of it blocking, during click on button#filters

An example comment, shortened.

The GitHub Action compares each pull request with your main branch and comments on the ones that got worse.

It's two steps that go around the step that already runs your Playwright tests.

A check only warns until you set it to enforce: 'fail'.

Watch a slow-motion replay of the jank

In full mode, a check that gets worse comes with a replay of the run at a quarter of real speed. The replay shows the frame rate at each moment and marks the frames where a list was blank.

This demo journal dropped half its frames as it scrolled.
This demo feed stayed at 60 frames per second, but its list was empty in 115 of 124 frames.

Here's what else it can do

Use it with Lighthouse and your field data

How Jankless compares with Lighthouse and field data
Lighthouse Field data, such as INP Jankless
It measures A page load Real users on real devices The clicks, typing and scrolling in your tests
It runs In a lab In production In your tests and in CI
You find out When you run it After the change has shipped In the pull request that caused it

Field data still tells you what real users get after a release. Jankless runs before the merge.

Set it up in three steps

  1. Install the package

    npm install -D playwright-jankless
  2. Add one line to your fixtures file

    withJankless(base, { auto: true })
  3. Add the GitHub Action to your workflow

    - uses: denodell/jankless/setup@v1
    - run: npx playwright test
    - uses: denodell/jankless/report@v1
      if: always()

Read the README View it on GitHub

“You find out that a change made the page janky while you're still working on it, and you fix it then. That's what I mean by Fast by Default.”