2d3d3de8cd
- Lazy load ninja-keys only on CMD+K press (0 requests on initial load) - Use esm.sh bundled module (3 requests vs ~81 previously) - Add esm.sh to CSP whitelist - Implement HTML Invoker Commands API for modals: - commandfor="modal-id" + command="show-modal" for opening - commandfor="modal-id" + command="close" for closing - Removes need for onclick handlers on modal buttons - Refactor index.html into layout partials (head, body-scripts) - Add comprehensive tests for both features
11 lines
433 B
HTML
11 lines
433 B
HTML
{{define "head-styles"}}
|
|
<!-- CSS - Conditional loading: bundled in production, modular in development -->
|
|
{{if .IsProduction}}
|
|
<link rel="stylesheet" href="/static/dist/bundle.min.css">
|
|
{{else}}
|
|
<link rel="stylesheet" href="/static/css/main.css">
|
|
{{end}}
|
|
<!-- Print styles - loaded separately, only applied when printing -->
|
|
<link rel="stylesheet" href="/static/css/print.css" media="print">
|
|
{{end}}
|