I want to load ads on a Flarum that is a single page application on every page
Please help in Implementing a JavaScript code when the refresh ads without refreshing the page and create the code by any common id so that one code can load all the ads
I tried many times and tried different with different routing pushState and replaceState but nothing happened
All codes are below -
<script type="text/javascript" src="//prebid.revbid.net/985/revbid.js" async></script>
<div data-placement-id="revbid-square" id='revbid-square-759' style='min-width: 300px; min-height: 250px;text-align:center'></div>
<div data-placement-id="revbid-square" id='revbid-square-765' style='min-width: 300px; min-height: 250px;text-align:center'></div>
<div data-placement-id="revbid-square" id='revbid-square-767' style='min-width: 300px; min-height: 250px;text-align:center'></div>
<div data-placement-id="revbid-square" id='revbid-square-768' style='min-width: 300px; min-height: 250px;text-align:center'></div>