I am sending AJAX request after 10 seconds to get the data from Nodejs Server but i keep receiving that resources interpreted as Style sheet and converted to mime-type html/css . Server is returning text/html . code works fine but external css dosnt work . the following code works fine for me functionality wise but i want to load external css files
My code here
$(document).ready(function() {
timer = window.setTimeout(function() {
$.ajax({
url: '/jrt/?Id=$data.jet.id',
method: "GET",
cache: false,
success: function(data) {
//$("#gt").append(data);
$('#gt').html(data);
if (state == 'jr' || state == 'jt')
{
window.clearTimeout(timer);
}
},
error: function(jqXHR, textStatus, errorThrown) {
alert('error ' + textStatus + " " + errorThrown);
}
})
}, 10000);
});