The error is called from an ajax call:
error: function(xmlhttp, status, error)...
Since you are expecting an XML data type, calling for "ajax / home.html" url will return the mime type "text / html". You might want to completely omit dataType for jQuery smart guessing to run it. For instance:
$.ajax({
Do you also have alert() in appendCSS , which I assume for debugging ?:
function appendCSS(filename) { alert(filename); if (filename != null) { $("head").append("<link rel='stylesheet' id='extracss' href='"+filename+"' type='text/css' />"); } }
source share