Репост из: TheFrontEnd🔥
Do you care about web performance🛠 in your projects?
It is pretty common to focus on frontend and design, features and meeting the deadline, forgetting to write proper tests and optimise your code.
The article below highlights some useful thoughts on boostering web performance.
Also have a look at our introduction article on promises/callbacks and async functions - as this hugely impacts the speed of your page. Make sure the user don't have to wait too long for some data to load in (e.g. you can load it in batches, which will be faster).
https://teletype.in/@thefrontend/HyQyhqiCM
Also one case I used in recent crypto project when loading coins from external API - was to retrieve coin names only (without all the irrelevant stuff like daily highs/lows), push it in the database on first page load and then retrieve it from there (it is faster and retrieving smth from your own db gives you more control).
As a result load time for that component improved from 6s (terrible I know) to 6ms (looks instant)
🚀 I want better performance
🛴 Who cares, as long as it works
It is pretty common to focus on frontend and design, features and meeting the deadline, forgetting to write proper tests and optimise your code.
The article below highlights some useful thoughts on boostering web performance.
Also have a look at our introduction article on promises/callbacks and async functions - as this hugely impacts the speed of your page. Make sure the user don't have to wait too long for some data to load in (e.g. you can load it in batches, which will be faster).
https://teletype.in/@thefrontend/HyQyhqiCM
Also one case I used in recent crypto project when loading coins from external API - was to retrieve coin names only (without all the irrelevant stuff like daily highs/lows), push it in the database on first page load and then retrieve it from there (it is faster and retrieving smth from your own db gives you more control).
As a result load time for that component improved from 6s (terrible I know) to 6ms (looks instant)
🚀 I want better performance
🛴 Who cares, as long as it works