/    Sign up×
Community /Pin to ProfileBookmark

IE – Page never completes loading after reload

This seems to just beat all…

I’ve got a page that loads just fine the first time it’s hit… actually, it loads very quickly. But after hitting reload, the following happens:

  • Static content appears

  • The loading bar freezes about 20% of the way in, with message “waiting for [i]site[/i].”

  • Most instructions in css are followed, except background images specified in css (usually) fail to appear

  • None of the javascript that is triggered onload is activated.
  • This is just in IE 6 & 7 (of course). Anybody run into this? What would cause a page to hang, but only when reloading?

    to post a comment
    HTML

    8 Comments(s)

    Copy linkTweet thisAlerts:
    @KDLAMar 05.2008 — I suggest you validate your HTML, CSS, and javascript. Then, run a speed test on one of the pages with the problem, to see if the file sizes of the images/media are too large.

    HTML: http://validator.w3.org

    CSS: http://jigsaw.w3.org/css-validator/

    Javascript: http://www.javascriptlint.com/online_lint.php

    Speed Test: http://www.websiteoptimization.com/services/analyze/

    KDLA
    Copy linkTweet thisAlerts:
    @EngywookauthorMar 05.2008 — Had the same problem even after validation... but I do think I've gotten this fixed.

    One of the tags calling an external script was at the bottom of the page. Move it to between the <head> tags, and the problem goes away. Best I can determine is that a video player on the page was preventing the external js from loading. This seems to be the file the browser was "waiting" on... forever.

    Not terribly satisfying, since I'm also supposed to put the call to our metrics at the bottom of the page. That seems to be coming in OK every time, though. Weird.
    Copy linkTweet thisAlerts:
    @KDLAMar 05.2008 — Best I can determine is that a video player on the page was preventing the external js from loading.[/quote]

    Is it a javscript-run video player, or just an embedded video?

    Either way, it could be [I]the file[/I] the player is attempting to play, rather than the player itself. It might be hogging the bandwidth.

    Just an idea....
    Copy linkTweet thisAlerts:
    @toicontienMar 06.2008 — If the video is inserted into the page using JavaScript, ensure it's not inserting invalid/broken HTML, as this might alter the DOM so that your JavaScript metric tag isn't recognized.
    Copy linkTweet thisAlerts:
    @EngywookauthorMar 06.2008 — Well, I'm still banging away at this.

    It turns out the video is not the (only) problem after all... I'm still getting the incomplete load behavior sometimes, even with the video player removed.

    The browser's telling me there are items remaining to be loaded, so this

    window.onload=function() {
    [i]...do some stuff here...[/i]
    }


    is never called. I'm getting that message even if everything on the page did, in fact, apparently load. Is there any way to tell what mysterious files IE is waiting for?

    What I'm doing for the time being: a couple of no-nos, but I'm at a loss for what else I can do short of a window alert that says: "Shame. You're using Internet Explorer. Stop that."
    Copy linkTweet thisAlerts:
    @EngywookauthorMar 06.2008 — If the video is inserted into the page using JavaScript, ensure it's not inserting invalid/broken HTML, as this might alter the DOM so that your JavaScript metric tag isn't recognized.[/QUOTE]

    Point well taken. It's a flash video. Javascript is indeed inserting html (now... I'm telling it to wait a second before loading the video player). The html, however, is perfectly valid, not an <embed> tag in sight.
    Copy linkTweet thisAlerts:
    @toicontienMar 06.2008 — Without a link to the page or code to look at, we can't really help you further.
    Copy linkTweet thisAlerts:
    @EngywookauthorMar 07.2008 — Without a link to the page or code to look at, we can't really help you further.[/QUOTE]

    Of course I understand that, and appreciate the help that's been given to this point. Thanks to all.

    I've thought about what I could, and what I cannot, bring to this forum. Unfortunately, there's really no way to delve deeper into this without [i]all[/i] of the code... and I'm not allowed to do that.

    Thanks, though.
    ×

    Success!

    Help @Engywook spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.1,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...