Skip to content

Commit

Permalink
Add lazy playbak
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Feb 25, 2025
1 parent 5952321 commit 3130a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async function loadEager(doc) {
await loadSection(main.querySelector('.section'), waitForFirstImage);
// Artificial Delay eager loading of the page for 2 seconds - for demo only
await new Promise((resolve) => {
setTimeout(resolve, 2000);
setTimeout(resolve, 1000);
});
}

Expand Down Expand Up @@ -239,7 +239,7 @@ async function loadLazy(doc) {
*/
function loadDelayed() {
// eslint-disable-next-line import/no-cycle
window.setTimeout(() => import('./delayed.js'), 3000);
window.setTimeout(() => import('./delayed.js'), 4000);
// load anything that can be postponed to the latest here
}

Expand Down

0 comments on commit 3130a7f

Please sign in to comment.