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

Optimization: Reduce JavaScript execution time #4181

Open
rfultz opened this issue Nov 5, 2020 · 0 comments
Open

Optimization: Reduce JavaScript execution time #4181

rfultz opened this issue Nov 5, 2020 · 0 comments

Comments

@rfultz
Copy link
Contributor

rfultz commented Nov 5, 2020

Background

Looking to optimize the site's performance and that of the homepage specifically, the Lighthouse tool in Chromium browsers has made some suggestions. Some of these will have repercussions throughout the app so we're going to make them their own tickets.

Recommendation: Reduce JavaScript execution time

Consider reducing the time spent parsing, compiling, and executing JS. You may find delivering smaller JS payloads helps with this. details

Overview

We could speed our page load and render by a few seconds by optimizing our JS files.

Benefit (the 80 of 80/20)

Moderate

Effort (the 20 of 80/20)

Minimal to significant
Could be less noticeable after removing JS files that aren't used, inlining some, and deferring others. May be alleviated with a new build routine (with Webpack 4+)

Complications

  • With no 'done' state, this could become an optimization time sink
  • Should make sure we don't remove code from pages where it's needed

Related tickets

This was referenced Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant