Last active
April 17, 2018 21:42
-
-
Save pixelbart/f4f4959ad6386abdda89d2f2ba4be489 to your computer and use it in GitHub Desktop.
load scripts after ajax load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = {}; | |
data['test'] = 'test'; | |
var response = $.ajax({ | |
url : ajax_url, | |
data : data | |
}); | |
response.always(function() { | |
$.getScript('file.js'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment