How does the 'fx' queue in jquery auto start?

前端 未结 1 1957
自闭症患者
自闭症患者 2021-01-18 23:14

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,

相关标签:
1条回答
  • 2021-01-18 23:29

    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 讨论(0)
提交回复
热议问题