Javascript: Why a Long Chain of Resolved Promises Can Still Freeze the UI

JavaScript developers often hear that Promises are asynchronous, which leads to a common assumption: if code is running through Promises, it shouldn’t block the UI. Yet many developers have been surprised to see a web page become unresponsive while executing a long chain of resolved Promises. So what’s really happening? The answer lies in understanding … Read more

Angular HTTP Interceptor: Sending Bearer Tokens with Every API Request

When building an Angular application that communicates with secured APIs, we usually need to send an authentication token with every protected HTTP request. Instead of manually adding the Authorization header in every service, Angular provides HTTP Interceptors. An HTTP interceptor allows us to intercept outgoing HTTP requests, modify them, and then pass them to the … Read more