title: Fire <script src="" when class appears on page
body: <p>I want to fire</p>
  
  <p><code>&lt;script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/2906471.js"&gt;&lt;/script&gt;</code></p>
  
  <p>When a specific class (.sub) appears on page. This class is only added to the body on the inner pages of the website.</p>
  
  <p>How would I go about doing this using javascript?</p>
  
  <p>Thanks for any help! </p>
  
  <p>Would it be possible to -></p>
  
  <p>'if ($("body").hasClass("Sub")) {
  FIRE SCRIPT
  }'</p>