Neova고급 SEO 플랫폼

JavaScript 실행 시간이 1.3초를 넘음

Neova에서는 Lighthouse 설정이 켜져 있을 때 실행되며, Mac의 Chrome을 사용합니다.

규칙 최종 검토: 2026년 10월 17일 · 가이드 업데이트: 2026년 9월 21일

로드 중에 스크립트가 1.3초 넘게 실행되어 메인 스레드를 바쁘게 하고 입력을 지연시킵니다. Lighthouse는 3.5초를 넘으면 실패로 평가합니다. 이 한도를 정한 검색엔진은 없으며, 지켜볼 필드 결과는 200 ms 미만의 INP입니다.

해 볼 수 있는 조치

Lighthouse 표에서 가장 느린 스크립트를 찾아, 서드파티 스크립트를 포함해 분할하거나, 지연하거나, 제거하세요.

Neova가 플래그를 지정하는 이유

  • 스크립트 파싱, 컴파일, 실행은 메인 스레드를 바쁘게 해, 페이지가 첫 탭과 클릭에 늦게 반응합니다.
  • Lighthouse는 1.3초 넘는 JavaScript 실행에 플래그를 지정하고 3.5초를 넘으면 실패로 평가합니다.
  • 이 한도를 정한 검색엔진은 없습니다. 살펴볼 필드 지표는 INP이며, 200ms 이하가 좋음입니다.

출처

전체 가이드

이 부분은 현재 영어로만 제공됩니다.

TL;DR, This audit fires when the browser burns too much time parsing, compiling, and running your JavaScript on the main thread. That work is what stalls first input, drags out Total Blocking Time, and makes a page that looks ready feel dead under the finger.

What This Check Flags

Every script goes through three stages before it does anything useful: the engine parses the source into an abstract syntax tree, compiles it to bytecode (and later optimizes hot paths), then executes it. The "Reduce JavaScript execution time" audit adds up the wall-clock time spent in those three stages, script by script, and flags the page when the total gets fat. The number you see is CPU time on the main thread, not network time, a script can download in 40ms and then chew 900ms of execution.

A Real Example, and the Fix

Say you pull in a full date library to format one timestamp in a footer:

import moment from 'moment';        // ~230 KB, parses + compiles on boot
const stamp = moment(post.date).format('MMMM D, YYYY');

The browser parses and compiles the entire library at startup even though you call one function. Swap it for a native formatter that ships zero bytes and runs in microseconds:

const stamp = new Intl.DateTimeFormat('en-US', {
  month: 'long', day: 'numeric', year: 'numeric'
}).format(new Date(post.date));

That single change deletes the parse, compile, and execute cost of a quarter-megabyte dependency. Multiply that discipline across a real dependency tree and execution time drops in seconds, not milliseconds.

Where the Time Actually Goes

Execution time is not one cost, it is four, and they respond to different fixes. Knowing which stage dominates tells you what lever to pull.

Stage What the CPU Is Doing Typical Share on a Heavy Page Best Lever
Parse Reading source text into an AST 10 to 20% Ship fewer bytes; defer non-critical files
Compile AST to bytecode, then JIT optimization 15 to 30% Remove unused code so nothing dead gets compiled
Execute Actually running functions, building DOM 40 to 60% Split bundles; profile and fix hot functions
Garbage collection Reclaiming memory mid-run 5 to 15% Reduce allocations in loops; reuse objects

How to Detect It

  1. Lighthouse (Chrome DevTools > Lighthouse, or PageSpeed Insights): run a mobile audit and open "Reduce JavaScript execution time" under Diagnostics. It lists every script with its total CPU time, split into Evaluation, Parse, and Compile columns, sort by the biggest number.
  2. DevTools Performance panel: record a page load, then read the Main track. Yellow blocks are scripting; the "Bottom-Up" tab ranks functions by self-time so you see exactly which code is eating the thread.
  3. PageSpeed Insights field data: check the CrUX Total Blocking Time and INP readings. If lab execution time is high and field INP is poor, real users are feeling the same stall, that is your priority signal, not a lab-only artifact.

How to Fix It

  1. Ship less code. The cheapest script to run is the one you never send. Audit dependencies, drop single-use libraries, and prefer platform APIs over polyfilled abstractions.
  2. Code-split by route. Break one bundle into per-view chunks with dynamic import() so the browser only compiles and runs code the current screen needs. See the code splitting glossary entry for patterns.
  3. Defer the non-urgent. Add defer to scripts that are not needed for first paint, and load interaction-triggered code lazily so it never touches the boot path.
  4. Cut dead code. Unused code is still parsed and compiled. Working through Remove Unused JavaScript is often the fastest single win here.
  5. Profile and fix hot paths. Cache repeated work, avoid layout thrashing inside loops, and move genuinely heavy non-DOM computation into a Web Worker so the main thread stays free.

How This Differs From Minimize Main-Thread Work

These two audits overlap but are not the same, and confusing them wastes fixes. Minimize main-thread work counts everything the main thread does, style, layout, paint, rendering, plus scripting. This audit counts only the JavaScript slice: parse, compile, execute. If your main-thread total is high but JS execution is low, the problem is layout or paint, not your code, and vice versa. Fixing execution time also lowers Total Blocking Time, since long scripting tasks are the biggest source of blocking.

FAQ

Is This the Same as "Reduce Unused JavaScript"?

No, but they feed each other. Unused JS is a bytes-and-coverage problem; execution time is a CPU problem. Deleting dead code cuts execution time because the browser stops parsing and compiling code it never runs, so it is usually the first fix, not a separate project.

What Counts as Passing?

Lighthouse warns above roughly 2 seconds of JavaScript execution and fails above about 3.5 seconds on its throttled mobile profile. Aim well under the warning line, because a mid-range phone runs your code several times slower than your dev laptop.

Could a High Number Be a False Positive?

Sometimes. Lab runs throttle the CPU to mimic a slow device, so a cold cache, a one-off heavy computation, or a noisy CI machine can inflate a single run. Trust the median of several runs and cross-check field INP before you panic.

Do Web Workers Always Help?

Not always. They keep the main thread responsive by offloading work, but the messaging overhead can make total CPU time slightly higher. Use them for heavy, self-contained computation that does not need the DOM, parsing, image processing, crunching data, not for trivial tasks.

Does Server-Side Rendering Reduce Execution Time?

It can move rendering off the client, but hydration still runs JavaScript on the main thread. Poorly-scoped hydration can leave execution time just as high, so measure after the change rather than assuming SSR alone fixes it.

내 사이트에서 찾아보기

Neova는 크롤링할 때마다 이 점검과 다른 모든 점검을 실행하고, 수정 방법을 팀을 위한 티켓으로 작성합니다.

  • Mac, Windows, Linux용 데스크톱 앱
  • 출처가 함께 있는 696개 점검 전체
  • Search Console과 Analytics 4를 읽기 전용으로 연결
  • Jira, Linear, Asana로 티켓 보내기

Neova 다운로드 Desktop Free 플랜 또는 Solo 14일 무료, 카드 불필요.

성능 점검 전체 · 가이드 · 점검 라이브러리

작성: Neova Labs · 점검 라이브러리로 돌아가기