How do you investigate a slow React app and identify performance bottlenecks
There are many reasons why an app might be slow. It could be due to a slow network, a slow backend, or a slow client. It could also be due to a memory...
38개의 노트
There are many reasons why an app might be slow. It could be due to a slow network, a slow backend, or a slow client. It could also be due to a memory...
You can use React's `lazy()` function in conjunction with dynamic `import()` to lazily load a component. This is often combined with `Suspense` to dis...
Unnecessary re-renders in components can occur due to several reasons, and it's important to optimize your code to minimize them for better performanc...
Clustering is a technique used to distribute the load across multiple processes. It is used to improve the performance and scalability of Node.js appl...
The event loop is a single-threaded loop responsible for handling all asynchronous tasks in Node.js. It continuously checks for events and executes as...
Server Components allow developers to write components that render on the server instead of the client. Unlike traditional components, Server Componen...
React differs from HTML in that it uses a synthetic event system instead of directly binding to the browser’s native events. This system brings consis...
There are many reasons why an app might be slow. It could be due to a slow network, a slow backend, or a slow client. It could also be due to a memory...
You can use React's `lazy()` function in conjunction with dynamic `import()` to lazily load a component. This is often combined with `Suspense` to dis...
Unnecessary re-renders in components can occur due to several reasons, and it's important to optimize your code to minimize them for better performanc...
When building a modern web application, bundlers such as
> Compress your JavaScript and keep an eye on your chunk sizes for optimal performance. Overly high JavaScript bundle granularity can help with dedupl...
In our chat application, we have four key components: `UserInfo`,
> tl;dr: lazy-load non-critical resources when a user interacts with UI requiring it
Besides user interaction, we often have components that aren't visible on the initial page. A good example of this is lazy loading images that aren't ...
**Note:** This article is heavily influenced by insights from the
Prefetch is a browser optimization which allows us to fetch resources that may be needed for subsequent routes or pages before they are needed
Preload is a browser optimization that allows critical resources (that may be discovered late) to be requested earlier
Making our applications globally accessible can be a challenge! We have to make sure the application is performant on low-end devices and in regions w...
> tl;dr: Third-party resources can slow down sites and can be a challenge to optimize. You can follow certain best practices to load or delay differen...
It can happen that we add code to our bundle that isn't used anywhere in our application. This piece of dead code can be eliminated in order to reduce...
In this guide, we will discuss list virtualization (also known as
Using React's lazy() function with Suspense to load components on demand and improve initial load time
Understanding the difference between Real DOM and Virtual DOM
How to investigate a slow React app and identify performance bottlenecks
How to lazy load components in React using lazy() and Suspense
What could be the reasons for unnecessary re-renders in React
How to use combine streaming server-side rendering with a new approach to hydration, selective hydration
Render your application's UI on the client
Update static content after you have built your site
Delay loading JavaScript for less important parts of the page
Server Components compliment SSR, rendering to an intermediate abstraction without needing to add to the JavaScript bundle
Generate HTML to be rendered on the server in response to a user request
Deliver pre-rendered HTML content that was generated when the site was built
Generate HTML to be rendered on the server in response to a user request
Take a deeper dive into React's rendering process and understand the basics behind the popular JavaScript framework.
Take a deeper dive into React's rendering process and understand how to make small yet powerful tweaks to optimize performance.
Take a deeper dive into React's rendering process and understand the role of the Context API and Redux in it.