Due to some other constrains I have to load my CSS through jQuery like this:
$('head').append($('<link rel="stylesheet" type="text/css" />')
.attr('href', 'http://path/MyCSS.css'));
The problem is, the usual jQuery page load function
$(function () {
myFunc();
});
Not working as expected. myFunc is supposed to do something related to loaded CSS. Now as I can not determine when the CSS is downloaded and added to my HTML, I don't know how and when to call myFunc?
loadhandler to thelinkelement.