Skip to content

Suggestion: use localForage and/or LZ-string for storing larger notes #2

@JobLeonard

Description

@JobLeonard

The code makes use of localStorage() to save the raw text and the time and date of when the edit has been made.

Given that localStorage only has 5MiB available to it, you might want to use the localForage library to have a localStorage-like API for IndexedDB, with automatic localForage fallback, so that people can store even larger notes, or you could even support storing pasted images as PNG blobs.

Alternatively, you might want to either compress the text with LZ-String before storing it. (BTW, version 2.0 is currently awaiting a merge and much faster, especially if you use the "Unsafe" version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions