I am trying to append a css file using
$('head').append('<link rel="stylesheet" href="style2.css" type="text/css" />');
That works great – however, I have some functions that run AFTER the css has been added and I can’t figure out a way for these to wait until this file has finished loading ?
How can I do this ?
Just check when one of the rules of the new CSS has been applied:
(That is a working example)