Skip to content

Instantly share code, notes, and snippets.

@rickcnagy
Last active August 29, 2015 13:57
Show Gist options
  • Save rickcnagy/9555233 to your computer and use it in GitHub Desktop.
Save rickcnagy/9555233 to your computer and use it in GitHub Desktop.
Run function on QuickSchools page after loading finishes. Pass callback and callback param as parameter i.e. afterLoad(alert, 'hi').
function afterLoad(callback, param) {
var loading = setInterval(function() {
if ($( "*[class^='load']:not('.ribbonSelectorWidget *'):visible" ).length === 0) {
clearInterval(loading);
callback(param);
}
}, 10, param);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment