Skip to content

Instantly share code, notes, and snippets.

@geraldvillorente
Created May 22, 2015 05:46
Show Gist options
  • Save geraldvillorente/81c45703765282c60b52 to your computer and use it in GitHub Desktop.
Save geraldvillorente/81c45703765282c60b52 to your computer and use it in GitHub Desktop.
A decent way to avoid using setTimeout when checking for html element changes
$('selector', context).bind("DOMSubtreeModified", function() {
// Do something.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment