need to have ads load in the background

Discussion in 'HTML & Website Design' started by amerigohosting, Aug 11, 2008.

  1. #1
    My site (xenocidal.com) is having some trouble with adengage. The past couple days, adengage has been very, very slow to respond, and it prevents the rest of my content from loading.
    How can i get the ads to load in the background while the rest of the page loads? any kind of wrapper that i can put around it?

    The load times seem to have been fixed (on there end) but I still wish to implement this.
     
    amerigohosting, Aug 11, 2008 IP
  2. asleb

    asleb Peon

    Messages:
    9
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could use javascript (I prefer jquery, www.jquery.com) and an onload function. <body onload="....">. In javascript:
    function() or with jquery (best!) inside this:
    $(document).ready(function(){
    var ad = "your ad code here.....";
    document.write(ad);
    });

    The ad code will not be written to the page until the page is finished loaded.

    /asle
     
    asleb, Aug 11, 2008 IP
  3. rouseout

    rouseout Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes the java method is best as asleb said try it and let us know
     
    rouseout, Aug 11, 2008 IP