I have just visited Glitch for the first time. When I viewed the source code of a Glitch (https://glitch.com/edit/#!/rollup-built-in-modules?path=views/index.njk.html:20:70) my browser’s CPU usage immediately jumped to 100% and stayed there.
From what I can see in the devtools, the problem is an infinite post-message loop between ng-validate.js
and codemirror.js
:
e.messageJumpContext (ng-validate.js:formatted:1404)
(anonymous) (ng-validate.js:formatted:249)
e.send (ng-validate.js:formatted:245)
h (ng-validate.js:formatted:1297)
l (ng-validate.js:formatted:1312)
(anonymous) (ng-validate.js:formatted:1321)
childList (async)
I (codemirror.js:63)
si (codemirror.js:4256)
(anonymous) (codemirror.js:3807)
(anonymous) (codemirror.js:3773)
(anonymous) (codemirror.js:2138)
zr (codemirror.js:3770)
(anonymous) (codemirror.js:3917)
refreshEditor (codemirror-shim.ts:308)
receivePostMessage (page-events.ts:129)
postMessage (async)
e.messageJumpContext (ng-validate.js:formatted:1404)
(anonymous) (ng-validate.js:formatted:249)
e.send (ng-validate.js:formatted:245)
h (ng-validate.js:formatted:1297)
l (ng-validate.js:formatted:1312)
(anonymous) (ng-validate.js:formatted:1321)
childList (async)
I (codemirror.js:63)
si (codemirror.js:4256)
(anonymous) (codemirror.js:3807)
(anonymous) (codemirror.js:3773)
(anonymous) (codemirror.js:2138)
zr (codemirror.js:3770)
(anonymous) (codemirror.js:3917)
refreshEditor (codemirror-shim.ts:308)
receivePostMessage (page-events.ts:129)
postMessage (async)
e.messageJumpContext (ng-validate.js:formatted:1404)
(anonymous) (ng-validate.js:formatted:249)
e.send (ng-validate.js:formatted:245)
h (ng-validate.js:formatted:1297)
l (ng-validate.js:formatted:1312)
(anonymous) (ng-validate.js:formatted:1321)
childList (async)
I (codemirror.js:63)
si (codemirror.js:4256)
(anonymous) (codemirror.js:3807)
(anonymous) (codemirror.js:3773)
(anonymous) (codemirror.js:2138)
zr (codemirror.js:3770)
(anonymous) (codemirror.js:3917)
refreshEditor (codemirror-shim.ts:308)
receivePostMessage (page-events.ts:129)