github-repo-size icon indicating copy to clipboard operation
github-repo-size copied to clipboard

"Data Saving" mode

Open santos-samuel opened this issue 5 years ago • 1 comments

Hello, I would like to make a sugestion:

Add a "Data Saving" feature that would only preload the total github repository size and would then allow to load a folder/file size manually, on click.

This will save not only bandwith but also the number of requests to the GitHub API. Note that after seeing some repos the rate limit is easily exceeded if one is not using his personal token.

santos-samuel avatar May 16 '20 15:05 santos-samuel

To address this I'm using OAuth to increase users' API call rates to 5000/hour. Check it out, On the point of data saving: It would be quite challenging to know when to rely on stored data and when the user should update. One solution would be to use session storage to store the initial data and then clear it on a page refresh with the service worker.

AminoffZ avatar Sep 27 '23 15:09 AminoffZ