JSFiddle - React, Tailwind, and code Playground
JavaScript
jquitr.reloadCSS = function() {
var currSrc = jquitr.getHash(),
cssLink;
if (jquitr.trString !== currSrc && currSrc !== '') {
jquitr.trString = currSrc;
cssLink = '<link href="http://jqueryui.com/themeroller/css/parseTheme.css.php?' + currSrc + '" type="text/css" rel="Stylesheet" />';
//works for both 1.6 final and early rc's
if ($("link[href*='parseTheme.css.php'], link[href='ui.theme.css']").size() > 0) {
$("link[href*='parseTheme.css.php']:last, link[href='ui.theme.css']:last").eq(0).after(cssLink);
} else {
$("head").append(cssLink);
}
if ($("link[href*='parseTheme.css.php']").size() > 3) {
$("link[href*='parseTheme.css.php']:first").remove();
}
}
window.setTimeout(jquitr.reloadCSS, 1000);
};