Skip to content

Instantly share code, notes, and snippets.

View adhikarisushant's full-sized avatar
🎯
Focusing

Sushant Adhikari adhikarisushant

🎯
Focusing
View GitHub Profile
@adhikarisushant
adhikarisushant / asynchronous-javascript.md
Last active April 21, 2024 10:32
Get along with advanced javascript concept.

Asynchronous JavaScript

1. Thread Of Execution

JavaScript is Synchronous

We are going to start to get into asynchronous JavaScript. Before we do that though, it is important to understand how JavaScript actually works and to understand that at it's core, JavaScript is a synchronous and single-threaded language. It has asynchronous capabilities, which we will be looking at in this section and others, but it is not asynchronous by default.

JavaScript is Single-Threaded

@adhikarisushant
adhikarisushant / performance-optimization-with-reactjs.md
Last active June 18, 2023 20:20
Techniques for Optimizing Applications built with ReactJS

Performance Optimization for ReactJS Applications

General

Optimizations

  • "Start with a problem first, then solve it. dont go looking for problems."

  • "Measure first before you optimize for performance. And then measure again."

profiler --> general --> check 'highlight updates when components render' to visually see what components render' (green border around element as long as you have devTools open)