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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:30:25+00:00 2026-06-03T05:30:25+00:00

I have read many answers and blog posts on the jQuery queues… and specifically

  • 0

I have read many answers and blog posts on the jQuery queues… and specifically this particular answer has helped a lot – https://stackoverflow.com/a/3314877/1315811 . But, both standard docs on jquery.com and the answer above got me to look at the jquery code http://code.jquery.com/jquery-1.7.2.js

What I cannot understand – from the code – how does the ‘fx’ (default) queue auto-start. Especially after the queue has been emptied.

For example on a custom queue, when you manually start the queue, and the queue runs out of functions to call, any reference to the queue are no longer invalid, so I would expect somewhere in the jquery code an attempt to figure out the state of the queue and if it was empty auto start it? The code kinda demonstrates what I ran into, if I am just missing a piece of code (I am look at line: 2060-2160 in the above mentioned code) please let me know.

> var aq = $({});
> aq.queue("mp").length
0
> n1 = aq.queue("mp")
[]
> n1.length
0
> aq.queue("mp", function (next) { setTimeout(next, 5000); })
[Object]
> aq.queue("mp", function (next) { setTimeout(next, 5000); })
[Object]
> aq.queue("mp", function (next) { setTimeout(next, 5000); })
[Object]
> n1.length
0
> aq.queue("mp").length
3
> n1 = aq.queue("mp"); // reset n1 to the "new" queue...
> n1.length
3

Also, if any part of this is unclear, please let me know and I will update accordingly.

  • 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-06-03T05:30:26+00:00Added an answer on June 3, 2026 at 5:30 am

    This bit of code within the queue code handles the auto-start:

    if ( type === "fx" && queue[0] !== "inprogress" ) {
        jQuery.dequeue( this, type );
    }
    

    If the queue being queued is fx and the queue is not already in progress, dequeue is called.

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

Sidebar

Related Questions

I have read many posts on here regarding this issue; The answers of 'Why
I have read many answers to questions about dynamically resizing NSWindows and nothing has
I have read many answers regarding this still i am getting confused if i
My question is in relation this this answer. https://stackoverflow.com/a/8773953/1297775 I have read at many
I have read many answers here but none did answer my exact question. I
I read many answers on this topic and this is what i have understood
i have read many of the answer related to this error and i also
I've Googled this and read many posts, but there are so many different answers
I have read many of the good questions and answers around multi-core programming how-tos
I have read the posts I found here and in many other places -

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.