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

optimize code and make it better. #3898

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 19, 2024

  1. optimize code and make it better.

    Debounced Scroll Event: The scrollFunction is now debounced to prevent excessive triggering while scrolling.
    
    Asynchronous Card Fetching: The card fetching is now asynchronous with async/await, which improves readability and error handling.
    
    Modular Functions: The code is broken down into smaller functions (fetchAndDisplayCards, toggleNightMode, applyHighlightToSearchResults, etc.) for better maintainability.
    
    Improved Night Mode Toggling: The night mode now toggles more efficiently with minimal DOM manipulation.
    
    Search Optimization: The search functionality has been optimized for readability and performance with a clear separation of concerns.
    sarwanazhar authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    028b50d View commit details
    Browse the repository at this point in the history