From 28f5656b62ac523a480878faf85aed63ccddbceb Mon Sep 17 00:00:00 2001 From: James Tsay Date: Wed, 19 Jun 2024 10:38:43 -0700 Subject: [PATCH] Preload helpers.js --- libs/utils/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/utils/utils.js b/libs/utils/utils.js index 9d26708741..48a7a02374 100644 --- a/libs/utils/utils.js +++ b/libs/utils/utils.js @@ -712,6 +712,7 @@ async function decorateIcons(area, config) { const base = miloLibs || codeRoot; loadStyle(`${base}/features/icons/icons.css`); loadLink(`${base}/img/icons/icons.svg`, { rel: 'preload', as: 'fetch', crossorigin: 'anonymous' }); + loadLink(`${base}/utils/helpers.js`, { rel: 'preload', as: 'script', crossorigin: 'anonymous' }); const { default: loadIcons } = await import('../features/icons/icons.js'); await loadIcons(icons, config); }