Loading scripts dynamically

后端 未结 5 1634
青春惊慌失措
青春惊慌失措 2020-12-09 23:35

I\'m loading a few YUI scripts dynamically in my code in response to an Ajax request. The DOM and the page is fully loaded when the request is made - it\'s a response for an

5条回答
  •  清歌不尽
    2020-12-10 00:13

    If I understand this correctly, your ajax response with this:

    
    
    

    some text here

    If this is the case, this is a clear case in which you should use dispatcher plugin. Dispatcher will emulate the browser loading process for AJAX responses. Basically it will load and execute every script in the exact order.

    Best Regards, Caridy

提交回复
热议问题