Skip to content

Commit

Permalink
Documentation and resoning
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeSimoes committed Jan 2, 2024
1 parent 6a11b13 commit 974794e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ export async function init(node = document) {
const loader = new ComponentLoader(name, el);
return loader.decorate();
};
Promise.all([...lcp.map(({ name, el }) => start({ name, el }))]);
Promise.all([
...lcp.map(({ name, el }) => start({ name, el })),
...prio.map(({ name, el }) => start({ name, el })),
]);
setTimeout(() => {
Promise.all(
...prio.map(({ name, el }) => start({ name, el })),
...rest.map(({ name, el }) => setTimeout(() => start({ name, el }))),
);
});
Expand Down

0 comments on commit 974794e

Please sign in to comment.