Skip to content

Commit

Permalink
TDW-2277 removed loaddependencies function call
Browse files Browse the repository at this point in the history
  • Loading branch information
bosco-ensemble committed Apr 9, 2024
1 parent 5d8e9b4 commit 22601ad
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,6 @@ async function waitForLCP() {
async function loadPage(doc) {
// eslint-disable-next-line no-use-before-define
await loadEager(doc);
// eslint-disable-next-line import/no-cycle
loadDependencies();
// eslint-disable-next-line no-use-before-define
await loadLazy(doc);
// eslint-disable-next-line no-use-before-define
Expand Down Expand Up @@ -1079,15 +1077,11 @@ async function loadLazy(doc) {
*/
function loadDelayed() {
// eslint-disable-next-line import/no-cycle
window.setTimeout(() => import('./dependencies.js'), 500);
window.setTimeout(() => import('./delayed.js'), 4000);
// load anything that can be postponed to the latest here
}

function loadDependencies() {
// eslint-disable-next-line import/no-cycle
window.setTimeout(() => import('./dependencies.js'), 500);
}

export async function lookupPages(pathnames) {
if (!window.pageIndex) {
const resp = await fetch('/query-index.json');
Expand Down

0 comments on commit 22601ad

Please sign in to comment.