title: What happens if you use a <script> tag with the same "src" attribute multiple times within a single HTML document?
body: <p>Although I am almost certain the answer to this question will be browser specific, do any of the browsers define behavior for when multiple <strong>&lt;script&gt;</strong> tags are used and have the same src attribute?</p>
  
  <p>For instance...</p>
  
  <pre><code>&lt;script src="../js/foo.js"&gt;&lt;/script&gt;
  ...
  
  &lt;!-- what happens here? --&gt;
  &lt;script src="../js/foo.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The reason I ask this question in the first place, is that in my particular case I am using partial views in an ASP.NET MVC application which make use of JQuery. The JQuery JS file(s) are all included in the master template file via script tags. I would prefer to add script tags to the partial view files so that in case they are used outside the context of the master template, they will automatically include all the necessary JS files, and not rely on another view or template to include them. However, I certainly don't want to cause JS files to have to be transferred to the client multiple times, or any other side effects that could negatively impact the user experience.</p>
  
  <p>My thinking right now is that most, if not all, of the major browsers (FF, Safari, IE, Opera) will cache a JS file the first time it is used, and then on subsequent script tags the browser will use the cached copy if available and if it hasn't expired. However, caching behavior can usually be altered through browser configuration, so it doesn't seem too "safe" to rely on any kind of caching behavior.</p>
  
  <p>Will I just have to accept the fact that my partial views are going to have be dependent on other templates or views including the appropriate JS files?</p>