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

Add support for next.js, un optimized code causes 226 KB of extra JavaScript first load causing performance issues. #26

Open
itse4elhaam opened this issue Sep 16, 2023 · 1 comment

Comments

@itse4elhaam
Copy link

Results with this library:

image

Result after removing it

image

@mnismt
Copy link

mnismt commented Dec 26, 2023

You can use dynamic import to prevent this, for instance:

const WhatsappChatScript = dynamic(
  () => import('@components/your-floating-whatsapp-component'),
  { ssr: false }
)

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