JSFiddle - React, Tailwind, and code Playground
HTML
<pre class="log"></pre>
JavaScript
function log(s, j) {
$('.log').append(s + ': ' + (j ? j.fn.jquery : 'no $') + '\n');
}
log(1, $);
window.setTimeout(function () {
log(4, $);
}, 2000);
$(function () {
var $ = null,
script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(script);
script.onload = function () {
$ = jQuery.noConflict(true);
log(3, $);
};
log(2, $);
});