5 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 Optimising Core Web Vitals
React is a popular tool for developing modern websites, but speed and interactivity aren’t always automatic. In this article, we present key techniques for optimising Core Web Vitals – from hydration to <Suspense> and DOM handling – to help you speed up your React projects.
INP Metric: 7 Tips for Optimisation
INP is not the easiest metric to optimise, so we have selected the most common issues and solutions from our experience.
JS Long Tasks (JSLT) Metric: When Your Website Forgets to Breathe
We will explain how the JS Long Tasks metric measures digital gridlocks in the form of long tasks and what these gridlocks can mean for your users and your business.
Optimising Vue.js and Nuxt.js: Tips and Tricks
Enhance your Vue.js website's speed with SSR, lazy loading, and other tips. Better performance means happier users and increased conversions.
setTimeout: Optimising Long Tasks in JS
The setTimeout() method is used to optimise long tasks in JavaScript that block user interactions, thereby affecting metrics like Total Blocking Time (TBT) or Interaction to Next Paint (INP), an essential part of the Core Web Vitals set.