I am trying to append a css file using
$(\'head\').append(\'\');
That wo
Just check when one of the rules of the new CSS has been applied:
$('head').append(''); var fakeListener = setInterval(function(){ if($("body").css("text-align")=== "center"){ clearInterval(fakeListener) // What you want to do after it loads } },50)
(That is a working example)