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 7071297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:40:16+00:00 2026-05-28T05:40:16+00:00

As far as I remember, in pure W3C event model (that means, using addEventListener),

  • 0

As far as I remember, in pure W3C event model (that means, using addEventListener), there is no guarantee that event handlers will be invoked in the order the have been attached.

What about jQuery event model. Can I rely on the order of attaching events?
Be careful while answering, since actually there can be three options here, not two:

  • you can not rely on order of attaching events, as you can see from jQuery code.
  • you can rely on order of attaching events in current implementation, but, actually, nobody promiss you this will be always supported in future, since order preserving is actually unintentional.
  • you can rely on order of attaching events – this is implemented willingly and most probably will stay with us forever, since is intuitive and helps us to use some common patterns, like resource preinitialization and so on.
  • 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. Editorial Team
    Editorial Team
    2026-05-28T05:40:16+00:00Added an answer on May 28, 2026 at 5:40 am

    If you attach the handlers through jQuery, they will be fired in the order in which they were attached. This is documented on the bind method:

    When an event reaches an element, all handlers bound to that event type for the element are fired. If there are multiple handlers registered, they will always execute in the order in which they were bound. After all handlers have executed, the event continues along the normal event propagation path.

    You’re correct that the DOM Events specification does not define any order for event handlers (link), and in fact most browsers do it one way, IE does it another. The guaranteed order is something jQuery does for you (by attaching just one handler per event per element — its own — and then doing its own dispatching to the real handlers attached via jQuery). Naturally this means that the order in which the jQuery-attached handlers get called, as a block, in relation to handlers attached in another way is not defined.

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

Sidebar

Related Questions

As far as I remember there exists an Eclipse plugin that reveals ids of
As far as I remember, Visual Studio (both 2008 and 2010) used to have
This has / may have been asked before, but, as far as I remember,
I remember all the hassle it used to be processing strings and ensuring that
This is what I have so far using System; using System.Collections.Generic; using System.Data.Linq; using
I remember having seen somwhere that it is possible to tell where a user
I'm using spring-security web authentication with spring-mvc, all is well so far, but now
As far as I remember, a role instance should automatically perform a restart after
I'm a bit confused, as far as I remember the Textbox used to launch
There is a similar post that covers regular registers. What about NEON registers. As

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.