diff --git a/static/icon.png b/static/icon.png index 726ba0c..b656d71 100644 Binary files a/static/icon.png and b/static/icon.png differ diff --git a/static/index.js b/static/index.js index b56a01d..85199e3 100644 --- a/static/index.js +++ b/static/index.js @@ -109,9 +109,41 @@ let detectTimer = null; let justPasted = false; + // CodeMirror ships every language mode in one ~190 KB bundle. The editor + // opens in plain-text mode, so that bundle is dead weight until a language is + // actually detected or picked — and on mobile it was competing for bandwidth + // with the element that decides LCP. Fetch it on first use instead. + // + // No nonce needed: script-src allows 'self' and carries no 'strict-dynamic', + // so a same-origin - - + + +