I've been running into an issue with sending multiple http requests using JavaScript. In Chrome, the first request consistently takes around 30ms while the second request jumps up to 300ms. From then on, subsequent requests alternate between these two timing scenarios, regardless of the type of request being made. Surprisingly, this behavior does not occur in Firefox. It's worth mentioning that I am hosting a development server on my computer. Could anyone provide some insights or advice on this peculiar situation?
Below are snapshots of Chrome's timing tab for reference:
https://i.stack.imgur.com/Fp47W.png
https://i.stack.imgur.com/69U6g.png
The connection 2 gap shown in the images is quite significant.