How to delay iframe loading

Discussion in 'Black Hat SEO' started by tbkdkc, Jan 13, 2009.

  1. tbkdkc

    tbkdkc Junior Member

    Joined:
    Oct 21, 2008
    Messages:
    154
    Likes Received:
    53
    Occupation:
    student
    Location:
    far far away
    Hey quick question, how can you delay the loading of iframe till after the page is done loading?
     
  2. tbkdkc

    tbkdkc Junior Member

    Joined:
    Oct 21, 2008
    Messages:
    154
    Likes Received:
    53
    Occupation:
    student
    Location:
    far far away
    I know someone knows how to do this, and im sure its pretty easy I just need to code to add
     
  3. fatboy99

    fatboy99 Registered Member

    Joined:
    Aug 15, 2008
    Messages:
    53
    Likes Received:
    6
    interested in this as well... thanks ^ for requesting it... lol
     
  4. woodstuck

    woodstuck Junior Member

    Joined:
    Nov 20, 2008
    Messages:
    152
    Likes Received:
    107
    Occupation:
    Self-Hemployed
    Location:
    Checking the map now...
    If you make it the last lines of code on the page then the page does load first.

    - woodstuck
     
  5. fatboy99

    fatboy99 Registered Member

    Joined:
    Aug 15, 2008
    Messages:
    53
    Likes Received:
    6
    I'm looking for more of time delay thing, in seconds or something... not sure about the op....
     
  6. darklegion

    darklegion Regular Member

    Joined:
    Nov 24, 2007
    Messages:
    280
    Likes Received:
    35
    I am sure there is a way you can do this with Javascript but don't quote me on that. Still learning coding beyond HTML/CSS.
     
  7. tbkdkc

    tbkdkc Junior Member

    Joined:
    Oct 21, 2008
    Messages:
    154
    Likes Received:
    53
    Occupation:
    student
    Location:
    far far away
    Yea more of like a delay, maybe like 5 seconds after page loads.. something liket hat
     
  8. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,949
    Likes Received:
    1,949
    iFrame another page on your server with a javascript delay. Make sure to also add the positioning to the page with the java code on it to position the iFrame if you require positioning. Also you can add a "Loading..." if you wanted to.
     
  9. 195471

    195471 Regular Member

    Joined:
    Oct 11, 2008
    Messages:
    417
    Likes Received:
    261
    Code:
    Scroll to the bottom of this page for a potential solution:
    
    http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_23986112.html
     
  10. zone69

    zone69 Junior Member

    Joined:
    Nov 24, 2008
    Messages:
    196
    Likes Received:
    1,291
    You can just create a meta refresh page to your framed page and control the time it takes to load in the refresh.

    For example in your page you can have:
    Code:
    <iframe src=http://yourdomain.com/refresh.php />
    
    Then create a page called refresh.php that is referenced above or call it whatever you want and then have this in there:
    Code:
    <html>
    <head>
    <meta http-equiv="refresh" content="10;url=http://Myframedpage.com">
    </head>
    </html>
    
    Just change the 10 to the amount of seconds your want the frame to delay loading.

    Note: This will work without javascript enabled in the browser.

    Hope that helps.
     
    • Thanks Thanks x 2
  11. Syowred

    Syowred BANNED BANNED

    Joined:
    Jun 9, 2008
    Messages:
    53
    Likes Received:
    15
    Yep meta refresh to the iframe is the easiest way to do it.
     
    • Thanks Thanks x 1