diff --git a/packages/common/http/src/jsonp.ts b/packages/common/http/src/jsonp.ts index 73e11a3e6f4..f4a70158eff 100644 --- a/packages/common/http/src/jsonp.ts +++ b/packages/common/http/src/jsonp.ts @@ -163,6 +163,9 @@ export class JsonpClientBackend implements HttpBackend { // the response callback from the window. This logic is used in both the // success, error, and cancellation paths, so it's extracted out for convenience. const cleanup = () => { + node.removeEventListener('load', onLoad); + node.removeEventListener('error', onError); + // Remove the