-
Notifications
You must be signed in to change notification settings - Fork 124
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
Lazy loading is added #450
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for joyful-otter-a57da4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@Dharmesh177 please review |
Add video of demonstration and screenshots for assess |
You will see difference will website load it is more efficient after lazy loading is enabled |
@Dharmesh177 please review my pr |
It taking too much load I guess now no need of this |
or need improvement |
Is there any improvement needed |
Kindly resolve conflicts and work on latest branch |
@cleveranu I have resolve the conflict please review now |
Related Issue
Closes #435
In this code, I added the class "lazy" to the elements to lazy load and specified the URL of the lazy content using the data-src attribute. The script will make an AJAX request to fetch the content from the provided URL and set it as the innerHTML of the lazy element.
Additionally, the code adds a scroll event listener to trigger the lazy loading when the elements come into the viewport. The lazy elements that are already visible on page load will be loaded immediately, while the remaining elements will be loaded as the user scrolls.
Checklist