fixed typographic traitment, moved js alog to header defer script for speed, no more flickering

This commit is contained in:
2026-09-11 21:36:42 +02:00
parent 4efafd0e22
commit 9dc1272631
10 changed files with 268 additions and 182 deletions
+20 -1
View File
@@ -1,13 +1,32 @@
# Main theme library.
global:
js:
assets/dist/main.js: {}
# defer : s'exécute après titles.js (defer dans le head), ordre du document.
assets/dist/main.js:
attributes:
defer: true
# assets/js/main.js: {}
css:
theme:
assets/dist/main.css: {}
# assets/scss/main.css: {}
# Rendu typographique des titres, au plus tôt (voir assets/js/titles.js).
titles:
header: true
js:
assets/dist/titles.js:
attributes:
defer: true
titles_hmr:
header: true
js:
http://localhost:5173/assets/js/titles.js:
type: external
attributes:
type: module
vitehmr:
js:
http://localhost:5173/@vite/client: