Take this code:
let jsonRequest = new XMLHttpRequest();
jsonRequest.overrideMimeType("application/json");
jsonRequest.open('GET', './js/settings.json', true);
IE doesn't support overrideMimeType
, and my HTML has been set to UTF-8
. Is there a risk to leaving the overrideMimeType
line out? It seems to work fine without it. This question has pretty much the same issue, but the answer isn't really clear.