diff --git a/packages/common/http/src/jsonp.ts b/packages/common/http/src/jsonp.ts index 7c9376f464ca..47bb82b6ab24 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