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 readHttp Request4 min read
Jan 6TypeError: Failed to fetch a.k.a Pain in the ASSEver seen this error in your console? You might have definitely seen and fixed this: ** usual Story ** The error is consistent -> you go to Google and search for the answer -> Open the first S.O. …Ui Failed To Load4 min readUi Failed To Load4 min read
Jul 19, 2022But why call it a Cookie?But why call it a Cookie? In the physical world, a cookie is something we eat…but in the computer world, a cookie is something to store information on. How does this make any sense? What is the analogy? This is what Sudip Bhandari and I were discussing a couple of…Cookies2 min readCookies2 min read
May 17, 2022This 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 readReact2 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 readTree 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? We’re out of…Debugging Javascript3 min readDebugging 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 readWeb 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 readJava 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 readJava 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 readHls2 min read