Skip to content

🚀 Cache lints #218

@twocaretcat

Description

@twocaretcat

Is This New?

  • I have read all available documentation (ex. README.md, CONTRIBUTING.md, external docs site, etc.)
  • I have searched for existing issues
  • I'm willing to implement this myself (optional)

What?

Save lints (for spell/grammar checking) to local storage when rememberInputText is true to speed up page loads. Investigate whether there is any benefit to computing counts again when the page loads. Otherwise, skip this computation

Refer to the existing implementation for saving input text using persistent nanostores as this will be very similar.

Acceptance Criteria:

  • Lints are serialized into an efficient format (if applicable)
  • Lints are saved to local storage when $inputText changes and $rememberInputText is true
  • Lints are saved to local storage when the value of $rememberInputText is changed to true
  • Lints are saved to local storage when the value of $rememberInputText is changed to true
  • Lints are restored on load

Why?

Restoring lints from local storage should be noticeably faster than computing them again for large input strings, improving UX.

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueOTHER: An issue that is good for first-time contributorshelp wantedOTHER: An issue that needs help from the community⏳ 2EFFORT: An issue requiring a low effort✨ featureTYPE: An enhancement or a new feature🚀 performanceTYPE: A code change that improves performance🚦 readySTATUS: An issue that have been reproduced, reviewed, estimated, and is ready to be worked on🚩 lowPRIORITY: An issue that is not urgent

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions