Skip to content

Commit

Permalink
fixed above the fold option in js
Browse files Browse the repository at this point in the history
  • Loading branch information
geckod22 committed Jan 9, 2025
1 parent 0aaf7c2 commit 2370f67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/link-prefetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ document.addEventListener( 'DOMContentLoaded', () => {
entries.forEach( ( entry ) => {
if ( entry.isIntersecting ) {
observer.unobserve( entry.target );
this.prefetchIfEligible( entry.target.href );
this.prefetchIfEligible( entry.target.href ) &&
this.prefetchIt( entry.target.href );
}
} );
} );
Expand Down
2 changes: 1 addition & 1 deletion build/link-prefetch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2370f67

Please sign in to comment.