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

Remove unnecessary scripts for minimal JS #24

Open
Riley1101 opened this issue Feb 5, 2024 · 0 comments
Open

Remove unnecessary scripts for minimal JS #24

Riley1101 opened this issue Feb 5, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Riley1101
Copy link
Collaborator

Riley1101 commented Feb 5, 2024

The website now has unused/redundant scripts and can be removed for better load time

Here is a list of things I noticed from the code base

  1. I don't think we need moment.js with a whopping 24.9KB
    Screenshot_20240205_130432

We could just go vanilla

 function formatDate(date: number): string {
    return new Date(date).toLocaleDateString('en-us', {
        weekday: 'long',
        year: 'numeric',
        month: 'short',
        day: 'numeric'
    });
}

Feel free to update the issue if you find more like this

Useful resources

@Riley1101 Riley1101 added enhancement New feature or request good first issue Good for newcomers labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant