Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

INP 412ms -> 184ms by splitting one event handler

INP (Interaction to Next Paint) measures the worst-ish interaction at p98 per session.
— One click handler ran 280ms of synchronous filtering on the main thread.
— Wrapped the work in scheduler.yield() after the visual update painted: input delay dropped 280ms -> 9ms.
— Presentation delay stayed at ~120ms (style + layout), unchanged.
— Processing time is what moved: 280ms -> 55ms.
INP is a max, not a mean. One 400ms handler buried in 50 fast ones still sets your score. Profile the slowest interaction, not the average.
Takeaway: 184ms p98 INP, under the 200ms 'good' threshold.
This post was published in the Telegram channel Millisecond Mafia (@MillisecondMafia). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.