Skip to content

Commit

Permalink
Preload helpers.js
Browse files Browse the repository at this point in the history
  • Loading branch information
TsayAdobe committed Jun 19, 2024
1 parent ef243e0 commit 28f5656
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 28f5656

Please sign in to comment.