jonnybarnes.uk/public/assets/js
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jonny Barnes 7dbf4a3311
Load the early theme script from a file so the CSP allows it
Production's Content-Security-Policy has no script-src, so it falls
back to default-src 'self' and blocks inline scripts. The inline head
script that applied the saved theme never ran on prod, leaving the
page on the system theme while the selector showed the saved choice.

Move it to resources/js/theme-init.js, built by esbuild alongside
app.js into a minified, source-mapped file loaded as a blocking script
in the head. ThemeSelector now also applies the saved colour scheme,
so the page and buttons can't disagree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 15:33:13 +00:00
..
app.js Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
app.js.br Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
app.js.map Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
app.js.zst Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
is-land.min.js Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00
is-land.min.js.br Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00
is-land.min.js.zst Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00
theme-init.js Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
theme-init.js.br Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
theme-init.js.map Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
theme-init.js.zst Load the early theme script from a file so the CSP allows it 2026-11-07 15:33:13 +00:00
winter.js Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00
winter.js.br Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00
winter.js.zst Bring back winter snow effect, gated by an admin setting 2026-08-23 10:17:26 +01:00