which version of jQuery is running on a website with multiple libraries loading?
<p>I am working on a project where there's multiple libraries loading in the head. The CMS being used is WordPress.</p>

<p>Through the wp_head, there's an enqueued script for the latest version 1.7.1, but just below it there's a set of script files that begins with version 1.4.</p>

<p>Here's a simple visual flowchart:</p>

<pre><code>&lt;head&gt;    
  &lt;script jQuery 1.7.1&gt;
  &lt;script jQuery 1.4&gt;
  &lt;script Colorbox&gt;
  [7 more scripts dependent on 1.4 here]
&lt;/head&gt;
...
&lt;footer&gt;
  &lt;scripts that can use either 1.7.1 or 1.4&gt;
&lt;/footer&gt;
</code></pre>

<p>My understanding is that since jQuery 1.4 is below 1.7.1, that it is effectively the library being used.</p>

<p>Is it possible to rearrange the scripts so that those dependent on 1.4 can only be used by 1.4 then the rest by 1.7.1? For example:</p>

<pre><code>&lt;head&gt;    
  &lt;script jQuery 1.4&gt;
  &lt;script Colorbox&gt;
  [7 more scripts dependent on 1.4 here]
  &lt;script jQuery 1.7.1&gt;
&lt;/head&gt;
...
&lt;footer&gt;
  &lt;scripts that can use either 1.7.1 or 1.4&gt;
&lt;/footer&gt;
</code></pre>

<p>See how I moved 1.7.1 down? Will 1.7.1's placement in the head below the 1.4 scripts affect the 1.4 scripts?</p>

<p>Is there a way to detect which version of jQuery is being used throughout the page?</p>
