I have a problem with jQuery's .html() method. I load a html content into a div by using this:
$('#content').html(domContent);
where domContent is containing a entire HTML string. It has a stylesheet linked to it. So while this line executes am getting GET file:///.... error in the console, because the URL path of CSS file is not valid.
However later I modify the URL and get it to apply it on my page.
But I don't want this error to occur in the first place. It should ignore it or if any way I can tell jQuery to skip this GET error.
.html()method fits your purpose here. Maybe the.load()method?html()?