Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Use the following in your code or as a bookmarklet:</p> <h3>Code</h3> <pre><code>void(function foo() { /* get head element */ var head=document.getElementsByTagName("head")[0]; /* create script and link elements */ var qUnitJS = document.createElement("script"); var qUnitCSS = document.createElement("link"); /* link rel and type attributes required for lazy loading */ qUnitCSS.rel="stylesheet"; qUnitCSS.type="text/css"; /* define script src attribute to lazy load */ qUnitJS.src = "http://qunitjs.com/resources/qunit.js"; /* append script and link elements */ head.appendChild(qUnitJS); head.appendChild(qUnitCSS); /* define link href after DOM insertion to lazy load */ qUnitCSS.href="http://qunitjs.com/resources/qunit.css"; /* call tests after QUnit loads */ qUnitJS.onload = function () {}; }() ) </code></pre> <h3>Bookmarklet</h3> <pre> javascript:void(function foo(){var head=document.getElementsByTagName("head")[0]; var qUnitJS = document.createElement("script"); var qUnitCSS = document.createElement("link"); qUnitCSS.rel="stylesheet"; qUnitCSS.type="text/css"; qUnitJS.src = "http://qunitjs.com/resources/qunit.js"; head.appendChild(qUnitJS); head.appendChild(qUnitCSS); qUnitCSS.href="http://qunitjs.com/resources/qunit.css"; qUnitJS.onload = function () {};}() ) </pre> <p>In Firefox, set <code>security.mixed_content.block_active_content</code> to false in <code>about:config</code> to run the <a href="https://blog.mozilla.org/tanvi/2013/04/10/mixed-content-blocking-enabled-in-firefox-23/" rel="nofollow">mixed active content</a> as a bookmarklet.</p> <p><strong>References</strong></p> <ul> <li><p><a href="http://www.stevesouders.com/blog/2012/04/10/dont-docwrite-scripts/" rel="nofollow">Don't Docwrite Scripts</a></p></li> <li><p><a href="http://www.stevesouders.com/blog/2012/04/09/making-the-http-archive-faster/" rel="nofollow">Making the HTTP Archive Faster</a></p></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload