jQuery: Enforce order of execution of document.ready() calls

后端 未结 5 896
小蘑菇
小蘑菇 2020-12-10 23:45

I\'m working on a codebase with multiple blocks of code setting some behavior on document.ready() (jQuery). Is there a way to enforce that one specific block is called befor

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 00:27

    You should be able to use holdReady to do this. As long as it is included before your ready events, you can run your own code and then trigger the other ready events.

提交回复
热议问题