JSFiddle - React, Tailwind, and code Playground
HTML
<div id="thediv" style="display:none;" />
JavaScript
var iframe = $("<iframe/>").load(function () {
alert("loaded");
}).attr({
src: "http://code.jquery.com/jquery-1.4.2.min.js"
}).appendTo($("#thediv"));