www.webdeveloper.com
Results 1 to 9 of 9

Thread: IE - Page never completes loading after reload

  1. #1
    Join Date
    Nov 2007
    Posts
    22

    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 site."
    - 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?

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    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
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  3. #3
    Join Date
    Nov 2007
    Posts
    22
    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.

  4. #4
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    Best I can determine is that a video player on the page was preventing the external js from loading.
    Is it a javscript-run video player, or just an embedded video?
    Either way, it could be the file the player is attempting to play, rather than the player itself. It might be hogging the bandwidth.
    Just an idea....
    FYI
    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

  5. #5
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755

  6. #6
    Join Date
    Nov 2007
    Posts
    22
    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

    Code:
    window.onload=function() {
    ...do some stuff here...
    }
    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."

  7. #7
    Join Date
    Nov 2007
    Posts
    22
    Quote Originally Posted by toicontien
    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.
    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.

  8. #8
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,755

  9. #9
    Join Date
    Nov 2007
    Posts
    22
    Quote Originally Posted by toicontien
    Without a link to the page or code to look at, we can't really help you further.
    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 all of the code... and I'm not allowed to do that.

    Thanks, though.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles