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

Fix: Hero Slider Issue #74

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Fix: Hero Slider Issue #74

merged 2 commits into from
Oct 10, 2024

Conversation

ragul1697
Copy link
Contributor

Fixes #71 - Issue with Hero Slider

Hey there, I am not an expert in React.js But I made a simple fix for the hero slider issue.

In your app, preloader is running for 2 seconds and after that the Home component loaded and at the end script.js file gets called. But in realtime, this is not working properly. The heroSliderItems is empty when the DOM load event is ended and the autoSlide function cannot update the sliders.

The DOMContentLoaded is called even the preloader is running because we imported script.js in the App.js file.

Copy link

welcome bot commented Oct 10, 2024

👏 Thanks for opening this pull request! Please check out our contributing guidelines. Your contribution makes a difference! 💪

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
603work ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 10:58am

@Anu27n Anu27n merged commit 4f97991 into Anu27n:main Oct 10, 2024
2 checks passed
Copy link

welcome bot commented Oct 10, 2024

🥳 Congrats on merging your first pull request! 🎉 We here at Behaviorbot are proud of you! Keep up the great work! 🙌 💥

@Anu27n
Copy link
Owner

Anu27n commented Oct 10, 2024

@ragul1697 thanks a lot

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

Successfully merging this pull request may close these issues.

Image Slider on home.js not working
2 participants