Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored Aug 21, 2024
1 parent f00eb15 commit afe43c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const hasLoaded = () => document.readyState === 'interactive' || document.readyState === 'complete';

const controller = new AbortController();

const domLoaded = new Promise(resolve => {
if (hasLoaded()) {
resolve();
Expand Down

0 comments on commit afe43c8

Please sign in to comment.