title: Function to check if jquery plugins are already initialized
body: <p>i want to check if jquery plugins are already initialized / included (prevent dublicate resource loading) and if not i want to add the plugin by CDN or by a local source.</p>
  
  <p>Anyone can help me with that Problem?</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I'm currently building a custom template in drupal. In that template i'm using a slick slider for scrolling through pictures in a content gallery. I also want to use a custom module for a slideshow, which uses the slick slider too (js, css integrated in the module). So now i want to check if the slick slider of the slideshow module is already initialized, if not i want to load the slick slider js via cdn. </p>
  
  <p>Hope that helps for understanding my problem.</p>
  
  <hr>
  
  <p>Update 2:
  Resolved the problem by using php and drupal core functions. I also found a solution with the modernizr.js load function -> asynchronous loading.</p>