Uploading the ADS after all remaining content

0

I'm trying to make the Revive AD Server from my site (a forum on the Vbulletin platform) to load only after all the content, because it is an external server, if at the top of the page.

I've tried to use the following options, and it even 'works' when but when the ADS starts the page gets all white, deleting the content it had already loaded:

//Código para carregar o script no header da página.
<script>
    $.getScript(url);
</script>

//Código para chamar o script no block em que é encaixado o ADS no site.
$(window).bind("load", function() {

The full code that calls the ADS banner looks like this:

<head>
    <script type='text/javascript' src='http://site.com.br'></script>
</head>
<body>
    <script type='text/javascript'><!--//<![CDATA[
        var m3_u = (location.protocol=='https:'?'https://site.com.br':'http://site.com.br');
        var m3_r = Math.floor(Math.random()*99999999999);
        if (!document.MAX_used) document.MAX_used = ',';
        document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
        document.write ("?zone=zone");
        document.write ('&amp;cb=' + m3_r);
        if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
        document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
        document.write ("&amp;loc=" + escape(window.location));
        if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
        if (document.context) document.write ("&context=" + escape(document.context));
        if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
        document.write ("'><\/scr"+"ipt>");
    //]]>--></script>
    <noscript>
        <a href='http://site.com.br' target='_blank'>
            <img src='http://site.com.br' border='0' alt='' />
        </a>
    </noscript>
</body>
    
asked by anonymous 15.04.2016 / 20:56

0 answers