I am trying to update 2 separate divs with PJAX. My PJAX is not working and only the second one is loading. Here is an example:
<div id="content-1"></div> <div id="content-2"></div> <button onclick=" $.pjax({ url: 'content-1.php', container: '#content-1', push: false }); $.pjax({ url: 'content-2.php', container: '#content-2', push: false }); "></button>
The problem is that two pjax requests cannot be executed at the same time, and the second one overlaps the first one, therefore only the second one is updated (one with id = "content-2"). Push is set to false by default, I donโt need the URL that I need to click in this particular case, but I need this for other parts of the site.
source share