SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Austin, TX
    0 Post(s)
    0 Thread(s)

    Forcing Page Render?

    I am having a problem on my website where the javascript ad code is basically blocking the rendering of the page while it loads up the data from an external ad server.

    I know the entire HTML has been delivered to the browser because I can do a view source and see the entire page, yet only part of the page is rendered up until the JS that is loading the ad information.

    Is there any way I can cause the entire page to render/load and then the ads can pop in as they reach the client?

    Thanks in advance for any response!

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Sydney, NSW, Australia
    25 Post(s)
    1 Thread(s)
    You probably have code in tables and the tables wont display anything until everything in the table is loaded. Get rid of the tables and use CSS positioning instead to have everything appear as soon as possible.
    Stephen J Chapman, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts