title: Is there a way to stop scripts from loading twice? JavaScript
body: <p>I have an application with multiple pages which loads dozens of external scripts.</p>
  
  <p>Some pages <em>include</em> other pages, which means several scripts are loaded multiple times.</p>
  
  <p>Is there any way I cold check which scripts are being loaded and then stop them from being loaded a second time? And improve performance.</p>
  
  <p>Sorry I have no code examples, I am just beginning to tackle this issue.</p>
  
  <p>Would anyone have any suggestions?</p>