diff options
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 |
commit | 7fe20d1365068c5da45b7d3123b6cea82300e6e9 (patch) | |
tree | 2e7e5327f8142d50ee58875a92fa794813bb6a3d /src/content | |
parent | ad03579e658d15aecc6f9bda693ec6995c9fa8ae (diff) |
content, client: generatePageLayout: experimental blocking render!?
See discussion in #code-quarantine: https://discord.com/channels/749042497610842152/854020929113423924/1232398510419349608
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 12 |
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(); |