Skip to content

Commit

Permalink
Retain current loading order
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed Sep 19, 2024
1 parent 2f22206 commit e52d535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ async function processSection(section, config, isDoc) {
const loadBlocks = [...stylePromises];
if (section.preloadLinks.length) {
const [modals, blocks] = partition(section.preloadLinks, (block) => block.classList.contains('modal'));
blocks.forEach((block) => loadBlocks.push(loadBlock(block)));
await Promise.all(blocks.map((block) => loadBlock(block)));
modals.forEach((block) => loadBlock(block));
}

Expand Down

0 comments on commit e52d535

Please sign in to comment.