square / square/invert

Separate Out stats.js - Too Much In There

Open
#26 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
129
Forks
4
PR merge metrics
No merged PRs in 30d

Description

As more Stats are collected, the payload for stats.js can start getting pretty large. We can split each stat into their own .js file and then just pull them in as needed.

Along with this we'll need to compute some totals and keep that (like we did with the stat_totals.js).

This will make the page "snappier" and more responsive.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating stats.js and the existing stat_totals.js referenced in the issue, then trace how stats are loaded for the page. Done means individual stats can be pulled in as needed, totals are retained, and the page remains responsive as more Stats are collected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.