Commit 9180677
feat: extract JS+CSS to external files, tighten CSP, remove hardcoding
- Extract 142KB JS to /app.js (1h cache, 'script-src self' now clean)
- Extract 29KB CSS to /app.css (1h cache, 'style-src self' now clean)
- index.html shrinks from 179KB to 16KB
- Remove DEFAULT_VARIABLE_SCOPE hardcoding (import from config.js)
- Worker serves /app.css and /app.js with cache headers
- CSP: removed all 'unsafe-inline' directives
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 0086e23 commit 9180677
8 files changed
Lines changed: 4661 additions & 4379 deletions
File tree
- web/strategy-switch-console
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 55 | | |
62 | 56 | | |
63 | 57 | | |
| |||
120 | 114 | | |
121 | 115 | | |
122 | 116 | | |
123 | | - | |
| 117 | + | |
124 | 118 | | |
125 | 119 | | |
126 | 120 | | |
| |||
153 | 147 | | |
154 | 148 | | |
155 | 149 | | |
| 150 | + | |
| 151 | + | |
156 | 152 | | |
157 | 153 | | |
158 | 154 | | |
| |||
0 commit comments