From 7fe20d1365068c5da45b7d3123b6cea82300e6e9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 23 Apr 2024 15:56:04 -0300 Subject: content, client: generatePageLayout: experimental blocking render!? See discussion in #code-quarantine: https://discord.com/channels/749042497610842152/854020929113423924/1232398510419349608 --- src/content/dependencies/generatePageLayout.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/content/dependencies') 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(); -- cgit 1.3.0-6-gf8a5