Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 135353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:46:37+00:00 2026-05-11T06:46:37+00:00

Update: This bug has been confirmed by at least two others. Even if you

  • 0

Update: This bug has been confirmed by at least two others. Even if you dont read my full post – if you’re reading this and using JQuery 1.3.1 then stop using it if you’re relying on any handlers that you want to execute when the DOM is complete but before the page’s images have loaded.

Update2: Thanks to Tom (user id 20!) for posting the link to the ticket on the jQuery bug tracker.

Update3 – 2009/01/28: The issue has been properly resolved (for those for whom reverting to 1.2.6 is not an option). For anyone currently using 1.3.1 and needing an immediate fix you can read the accepted answer below for direction. Thanks John.


I just upgraded to JQuery 1.3.1, and it took me several hours to realize that my beloved

$(function( ) {  ... } 

syntax was now waiting for the entire page to load (including images) before executing the function body. I was seeing strange behavior when trying to integrate Yahoo’s menus. (Fortunately I had some slow loading images on my page which made me aware of the problem)!

I made a test file becasue I figured something more complex was going on, but I still had the same symptoms even with this simple file.

<head>    <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js'></script>       <script>     $(function() {           alert('Ready');      });   </script> </head>  <body>         <img src='<PATH_TO_DYNAMIC_IMAGE>_1.jpg' />   <img src='<PATH_TO_DYNAMIC_IMAGE>_2.jpg' />   <img src='<PATH_TO_DYNAMIC_IMAGE>_3.jpg' />   <img src='<PATH_TO_DYNAMIC_IMAGE>_4.jpg' />        </body> 

Different versions of JQuery had different results:

  • What happens in version 1.2.6 is that alert box is shown instantly and then I see the images loading behind it (expected and documented behavior).
  • What happens in version 1.3.1 is that the images all load and only then will the alert box be shown.

Whats going on! Is this a new feature (I cant imagine why) or a bug?

Important: This only seems to be an issue in IE and not firefox

Sorry I dont have a dynamic image file that is publically accessible to make it easier for others to see this. If you want to test it out I suggest using a large image file picked randomly from google images and clear your cache.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:46:38+00:00Added an answer on May 11, 2026 at 6:46 am

    This was due to jQuery bugs #2614 and #3880 – there were definite problems with the ready code in IE in 1.2.6 and in 1.3 – and now a different set of problems in 1.3.1.

    A larger discussion can be found here:
    http://groups.google.com/group/jquery-dev/browse_thread/thread/3abf45d3fd4d50fc

    And the ticket related to the issue can be found here (if you find additional issues with the fix, please re-open the ticket and post to the above jquery-dev thread):
    http://dev.jquery.com/ticket/3988

    I just landed a fix for this in SVN rev 6170.

    I just pushed up a new nightly that you can use until 1.3.2 final comes out:
    http://code.jquery.com/nightlies/jquery-2009-01-28.js

    Sorry in the delay for getting a fix out – was traveling this week.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE 2011.09.13 This bug has been resolved by Adobe. The example code below now
Update: This was a bug which has been fixed by now (Chrome 18). I
Update : This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved
EDIT: This bug was logged, and confirmed as a Facebook bug . It has
Update : a co-worker told me that this is a known bug in the
Update: This turned into a blog post, with updated links and code, over at
Update 3 (Read This First) : Yes, this was caused by the object profile
Ok this is a really annoying bug that I have been having issues with
The Windows console has been Unicode aware for at least a decade and perhaps
UPDATE: See my answer to this question first. This appears to be a bug.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.