I receive this error ocassionally.
Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
window.(anonymous function).(anonymous function) @ leaflet.utfgrid.js:257
(anonymous function) @ tile.json?callback=lu0.lu_3_7_1:1
This is the code:
window[wk][functionName] = function (data) {
self._cache[key] = data;
delete window[wk][functionName];
head.removeChild(script); // <--
self._finish_request(key);
};