The ultimate guide to modern web application performance

The ultimate guide to modern web application performance

When I started to write this article I did not thought that it will be so long. Anyway I hope it will help you to boost your application performance. After reading this you will be able to boost your application speed beyond the limits. Good luck!

When I started to write this article I did not thought that it will be so long. Anyway I hope it will help you to boost your application performance. Good luck!

Table of contents

Here you can find only the main sections as the list of all the subsections is too long — there are ~107 of them.

1. Compression algorithms

2. Code splitting and lazy loading

3. Lazy or partial hydration

4. Tree shaking — dead code elimination

5. Javascript minification and optimization tools

6. Library swaps

7. Images

8. Fonts

9. Layout recalculation

10. External scripts

11. Pre — strategies

12. Protocols

13. Caching

14. Useful tools

1. Compression algorithms

To minimise the size of provided files to the client you can use different compression algorithms. Inside the Lighthouse there is a section for it called Enable text compression. Here you are able to find out what files you are providing with additional compression, or if your third party scripts are provided with compression.

Image for post

1.1. Gzip

Gzip uses the LZ77 and Huffman coding compression techniques. Most web browsers and clients support it. You can setup your server to use dynamic or static compression. With dynamic compression your files are compressed by fly. With static compression you need to compress your files during the build.

The compression ratio for Gzip is around 44% as it is shown in next sections.

No compression

Transferred 445.57 KB and took 329 ms to load

Image for post

Dynamic compression

Transferred 197.6 KB and took 281 ms to load

Image for post

Static Compression

Transferred 197.2 KB and took 287 ms to load

react javascript web-performance webpack nodejs

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

Webpack - How to Install WebPack JavaScript Module Bundler on Windows Nodejs

Learn how to install webpack on Windows. Install ReactJS on Windows with Webpack.

Increase Performance of React Applications Via Array JavaScript Methods

Increase Performance of React Applications Via Array JavaScript Methods. We will create a simple event management application in the react to add, update, and delete an event.

How a Pool of Web Workers Helped to Solve the UI Performance Issue?

We can achieve multi-threading in JavaScript with the help of HTML Web Workers API. A web worker is a JavaScript that runs in the background, independently of other scripts. To know more about web workers please read here

7 best practices that will increase React Native performance

React Native is based on JavaScript, the native part interacts with native thread through a bridge. We have three threads running the React Native framework namely: UI thread, Shadow Tree thread, and the JavaScript thread. In this article, I will explore some of the common best practices you should consider to improve React Native performance. 7 best practices that will increase React Native performance