3 documents tagged with “JavaScript”
JavaScript is the biggest stumbling block of modern site speed. Bundles that have grown to the point where downloading them takes seconds, reactive UI computations that block the main thread, and third-party scripts that add kilobytes with no obvious benefit.
Under the JavaScript tag you will find articles on optimising the bundle, code splitting, dealing with long tasks, debouncing event handlers, and what to do when your INP is in the red zone.
Accelerate React: 6 Proven Tips for Optimizing Core Web Vitals
React is a popular tool for developing modern websites, but speed and interactivity are not always automatic. In this article, we present key techniques for optimizing Core Web Vitals – from hydration, through <Suspense>, to DOM handling – and show you how to use them to speed up your React projects.
JS Long Tasks (JSLT) Metric: When Your Website Forgets to Breathe
We explain how the JS Long Tasks metric measures digital traffic jams caused by long tasks and what these jams could mean for your users and your business.
setTimeout: Optimising Long Tasks in JS
The setTimeout() method is used to optimise long tasks in JavaScript that block user interactions and degrade metrics such as Total Blocking Time (TBT) or Interaction to Next Paint (INP), a vital part of the Core Web Vitals suite.