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

Reduce loading time #47

Open
jcklie opened this issue Oct 11, 2020 · 3 comments
Open

Reduce loading time #47

jcklie opened this issue Oct 11, 2020 · 3 comments
Labels
Help wanted Extra attention is needed Javascript

Comments

@jcklie
Copy link
Contributor

jcklie commented Oct 11, 2020

We load a lot of JS and other things, try to make page loading faster

@amirhssn
Copy link
Contributor

amirhssn commented Oct 27, 2020

These are something I think we might want to consider:

  1. Host all third-party JS/CSS files by ourselves so that the browser would only need one connection. Given that we use CloudFront I think there wouldn't be any problem regarding the additional load.
  2. We have a bunch of JS libraries that are not necessarily needed on every single page, so we can include them only when they're needed.
  3. Move the JS loading part from the header to the bottom of HTML so that they don't block page rendering.
  4. There two unused fonts. We can remove them.
  5. Optimize the CloudFront caching configuration, especially as our entire website is static and the browser shouldn't really reload any resources.

@jcklie
Copy link
Contributor Author

jcklie commented Nov 1, 2020

Thank you for your analysis. I will look into the cloudfront. It really feels like it is not caching. Which fonts are unused? Are they loaded anyways?

@amirhssn
Copy link
Contributor

amirhssn commented Nov 1, 2020

Yes, I think they're loaded anyway. Take look at here:

@jcklie jcklie added Help wanted Extra attention is needed Javascript labels Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Extra attention is needed Javascript
Projects
None yet
Development

No branches or pull requests

2 participants