forcing a jQuery ready block to run after all other ready blocks

后端 未结 4 1987
醉梦人生
醉梦人生 2021-01-02 00:10

Is it possible to have one jQuery ready block executed after all others have done so.

I have this in my master page ...



        
4条回答
  •  执笔经年
    2021-01-02 00:24

    How about only you only registring one document.ready() on the master page, and then let that one execute the code based on a variable? This solution is not that elegant, but a search for JavaScript thread synchronization didn't really turn op anything.

    You could change the code on the master page to:

    
    

    And put this script in you page:

    
    

提交回复
热议问题