I want to use jQuery to asynchronously load CSS for a document.
I found this sample, but this doesn\'t seem to work in IE:
This should work in IE:
$("head").append("<link rel='stylesheet' type='text/css' href='/inc/body/jquery/css/start/jquery-ui-1.8.10.custom.css' />");
$.get("path.to.css",function(data){ $("head").append("<style>"+data+"</style>"); });