This version is old school.
        Please find jQuery plugins on npm.
      
    jQuery DOM Polling Plugin
      
      by Max Shirshin
      
    
    Allows you add custom events that can be precisely configured to track changes on DOM nodes (from simple form text updates to tracking anything like CSS position). These events support jQuery Event API (including event delegation!). Plays nicely with resources, monitors DOM updates, clears caches whenever necessary