I have a simple question that I can't seem to find an answer to anywhere. In one tab, let's call it "A," I use window.open()
. The new tab, "B," starts loading with some ajax in its script. The ajax takes a long time, purposely so as I am testing handling lengthy calls. After about 10 seconds, tab "B" freezes and surprisingly, so does tab "A."
I've tried using both window.open("url", "_blank");
and window.open("url");
, but neither resolves the issue.
To make things more confusing, when tab "B" loads without any timeout issues, everything functions perfectly. However, once I change the URL parameters in tab "B" (triggering long ajax requests), causing it to timeout, tab "A" still freezes. It's perplexing how they remain connected after the window.open() execution is done. Interestingly, other tabs continue working fine throughout all this.
I must be overlooking something here. Why are tab "B" and tab "A" still linked even after the initial window.open() call? This situation reminds me of quantum entanglement, as I observed something similar in Safari too, not just Chrome on Mac.
Both pages utilize the DataTables jQuery plugin for making ajax calls through API. Although I doubt DataTables could be causing this strange connection between tabs...
Does anyone from the SO community have any insights or ideas on this peculiar issue?
Thank you all in advance!