JSFiddle - React, Tailwind, and code Playground

HTML

<h2>text</h2>

JavaScript

var href = "http://twitter.github.io/bootstrap/assets/css/bootstrap.css";
var link = document.createElement('link');
link.setAttribute('href', href);
link.setAttribute('rel', 'stylesheet');
link.setAttribute('type', 'text/css');
var intervalId = setInterval(
	function(){
		try{
			//console.log(link.sheet);
			//console.log(link.sheet.cssRules);
			if(link.sheet && link.sheet.cssRules.length){
				clearInterval(intervalId);
				clearTimeout(timeoutId);
			}
		}
		catch(e){
			//console.log('err...' + e.message);
		}
	},
10);

var timeoutId = setTimeout(
	function(){
		clearInterval(intervalId);
		clearTimeout(timeoutId);
		alert('ERROR');
	},
5000);

document.getElementsByTagName('head')[0].appendChild(link);