You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know you asked this ages ago, but I wanted to do the same thing recently, so thought I'd reply with my solution. I had to edit the original source file though.
The bulk of the work is triggered by the makeRequests function. So I edited it to this:
The requestQueue.length conditional and its contents already exist in the source code, so this is just tying into that. So if no more requests need to be made, we trigger an onComplete method on the respond object (if it exists, and is a function).
Then, after respond.js has been loaded in (whether you're doing the asynchronously, or through a standard script tag), in your own script file you can include everything you need in the onComplete function. Personally, I use it to trigger a custom jQuery event which I can re-use:
I want run script after respond loaded. but not solution. I try setTimeout but it not good solution. thank all
The text was updated successfully, but these errors were encountered: