PinnedWhy does your browser limit the number of concurrent network calls?Every browser limits the number of concurrent connections to a single domain as well as it has a limit for overall concurrent connections. The above image is taken from StackOverflow. It shows the number of parallel connections various browser supports. But why does the browser limit the number of calls at all? To understand this lets first understand what happens when a…Http Request4 min read
May 17This is why I started disliking REACT.After working with react for 5 years, this is what I feel about React. The more I see updates on React, the more I dislike it. I understand there are 100s of new libraries, but 100s of new hooks in a single library?? It’s been like 6 months since I…React2 min read
May 31, 2021Pick the cherry or shake the tree to prune the dead code.The problem statement that made me dig deep into this topic and write this article is tree shaking with rc-slider. In one of my recent React project, I am taking utmost care to make sure that I let no stone unturned to achieve the best performance. …Tree Shaking3 min read
May 11, 2021Debugging JavaScript live on productionHow often do you encounter bugs in production which are impossible to reproduce locally? IDK about you, but it happens a lot to me. Viewing the script and adding a breakpoint might help us at times but what if we need to change something in that script? …Debugging Javascript3 min read
Apr 26, 2021Improving web performance by downloading the image efficiently.Presence of <img /> tag is one of the main reason why some site loads slow. Here are some tricks which can be used to improve the performance of the website by handling the download of image efficiently. 1. Using srcset and sizes instead of just src: When we use…Web Performance3 min read
Feb 27, 2021Understanding NaN, isNaN() and Number.isNaN()NaN is something which we use less frequently in JavaScript but still it’s worth understanding the concept. What is NaN? NaN is a property that represents Not a Number value. We get NaN when we try to do a numeric operation on something which cannot be converted to a Number. …Java Script2 min read
Feb 1, 2021Fixing that address bar issue in mobile browsers once and for all 🤬Does your app require a fixed address bar in mobile browsers? Read mode intended to solve problem, creates a lot of problem for some use case. The sudden disappearing and appearing of the address bar as you scroll through mobile browser is pain in the ASS at times. My use…Java Script2 min read
Oct 23, 2020Caching next HLS video with hls.jsDo you have multiple HLS videos to be played one after the other? And do you want to cache the next video so that it starts playing immediately when u go to next? Well, if your answer is “yes” to the above question, then this article is for you. The…Hls2 min read
May 19, 2020Integrating Sqlite3 in electron project built with Electron-forgeI’ve been trying to integrate sqlite3 into my electron project which is built using electron-forge. This is a brief and to the point article on how I solved this problem. Here is my app’s tech stack: Electron. React. Electron-forge. Webpack (electron-forge). TypeScript. NOTE: After the first few attempt and some…Better Sqlite 32 min read
May 15, 2020DENO: Create your first serverI won’t be talking about what is deno here, rather I will explain the code to create a simple local server. To learn more about deno follow their official page. Code link Github repo on deno-project Installing deno For windows run the following command from your PowerShell ISE iwr https://deno.land/x/install/install.ps1 -useb | iexDeno3 min read