title: How do I nest cdn loading of jquery and jquery-ui in a bookmarklet?
body: <p>I found examples of linking and loading jquery in bookmarklets but couldn't find a case where both jquery and jquery-ui were both loaded.</p>
  
  <ul>
  <li><a href="http://benalman.com/projects/run-jquery-code-bookmarklet/" rel="nofollow">jQuery Bookmarklet Generator</a></li>
  <li><a href="http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet/" rel="nofollow">better stronger safer jqueryify bookmarklet</a></li>
  </ul>
  
  <p>Here's the gist I'm working on:
  <a href="https://gist.github.com/765720" rel="nofollow">link text</a>
  update the following gist is functional now.</p>
  
  <pre><code>&lt;a href='javascript:(function(e,a,g,h,f,z,c,b,d){if(!(f=e.jQuery)||g&gt;f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js";c.onload=c.onreadystatechange=function(){z=a.createElement("script");z.type="text/javascript";z.src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/jquery-ui.min.js";z.onload=z.onreadystatechange=function(){if(!b&amp;&amp;(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}}})(window,document,"1.4.4",function($,L){/*ENTER JQUERY-UI CODE HERE*/});'&gt;CC&lt;/a&gt;
  </code></pre>