Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freezes when anchor linking #7

Open
palfaro91 opened this issue Nov 11, 2024 · 1 comment
Open

Freezes when anchor linking #7

palfaro91 opened this issue Nov 11, 2024 · 1 comment

Comments

@palfaro91
Copy link

I am using this plugin in the following way

<div v-if="position === 0" > 
  some content that renders above the fold that should not be lazy loaded
</div>
<NuxtLazyHydrate
      v-else
      :when-visible="{ rootMargin: '50px', threshold: 0.1 }"
      @hydrated="componentHydrated"
    >
    <my-component />
 </NuxtLazyHydrate>

When I click on an anchor link the page freezes and becomes unresponsive. Any idea why it would freeze the page when anchor linking?

@Baroshem
Copy link
Owner

Hey, good question.

Would you be able to create a reproduction repository in Stackblitz? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants