I have a website with two pages (A and B). Both have some content which is loaded via renderings. A has a button which opens B in a new tab. A also has some frontend code which calls one of my APIs, which again calls an external API to fetch some data. This data will be displayed on page A. Page B does not rely on that data. All of that happens asynchronously and enables the user to click on the button which opens page B in a new tab.
The problem is although the new tab opens, page B doesn't load until page A has loaded all of the data.
While investigating this problem I figured out that the rendering on page B is not invoking the assigned controller action until the API on page A is done.
Does anyone have an idea on how to solve it?
I'm using sitecore 9.1.1 and I'm happy to provide any additional information if needed.