execute javascript before dom is loading
<p>I want to develop a handle javascript class that handle used frameworks, among other things.</p>

<p>For example:</p>

<pre><code>myClass.addFramework('jQuery'); // just an example
</code></pre>

<p>It works fine and my class add the framework - but if there any jQuery code in it, it wouldn't work, because the framework is loaded after the dom is ready, so a default jQuery snippet like <code>jQuery(document).ready(function(){});</code> can't work, because 'jQuery' isn't already defined.</p>

<p>Is there any solution to that I can script a 'fix' that before the rest of the dom is beginning to loading all my <code>addFramework</code> methods must be executed ?</p>
