« get me outta code hell

content, client: generatePageLayout: experimental blocking render!? - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-23 15:56:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-30 20:48:17 -0300
commit7fe20d1365068c5da45b7d3123b6cea82300e6e9 (patch)
tree2e7e5327f8142d50ee58875a92fa794813bb6a3d /src
parentad03579e658d15aecc6f9bda693ec6995c9fa8ae (diff)
content, client: generatePageLayout: experimental blocking render!?
See discussion in #code-quarantine:
https://discord.com/channels/749042497610842152/854020929113423924/1232398510419349608
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generatePageLayout.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index 5322950f..5d2a48cb 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -606,8 +606,15 @@ export default {
             ]),
 
             html.tag('script', {
+              blocking: 'render',
               src: to('staticJS.path', 'lazy-loading.js'),
             }),
+
+            html.tag('script', {
+              blocking: 'render',
+              type: 'module',
+              src: to('staticJS.path', 'client.js'),
+            }),
           ]),
 
           html.tag('body',
@@ -633,11 +640,6 @@ export default {
 
               // infoCardHTML,
               imageOverlayHTML,
-
-              html.tag('script', {
-                type: 'module',
-                src: to('staticJS.path', 'client.js'),
-              }),
             ]),
         ])
     ]).toString();