SyntaxFix
Write A Post
Hire A Developer
Questions
There is a plugin, adampietrasiak/jquery.initialize, which is based on MutationObserver that achieves this simply.
MutationObserver
$.initialize(".some-element", function() { $(this).css("color", "blue"); });