Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4080

domready events not always fired in IE

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.18, 1.5.0
    • 1.4.19, 1.5.1
    • wicket
    • None

    Description

      The domready events for IE rely on a onreadystatechange to state 'complete'. Normally, this state should go from 'loading', to 'complete' to 'loaded'. However, IE does not always trigger events for all states. Why it skips certain events, I don't know, but it seems related to other content being loaded at the same time. Perhaps IE does not find the time to trigger the event and simply skips a step. If it skips 'loading' or 'loaded', there is no problem, but if it skips 'complete', the domready scripts will never run. I've never seen it skip more than one state, therefore I propose the attached patch, which also checks for 'loaded'.

      Although nothing has changed for a long time in wrt domready, this now is a serious issue when using the latest version of wiquery. The reason is that wiquery changes the order in which javascript files are added to head, and this different order causes IE to skip states far more frequently.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dashorst Martijn Dashorst
            papegaaij Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment