up209d/ResourcesSaverExt

Crashes when there's thousands of files

lozenge0 opened this issue · 2 comments

Not sure if it's some sort of overflowing buffer or it just needs to be throttled but if you have like 4000 assets on the site and some of which are large it will just crash

I think it may be because the number of files is too large or the total resources are too large, which causes the browser to crash. The way I deal with it is, I changed the source code of ResourcesSaverExt to divide the number of files packaged each time into multiple sub-packages, and only package 1000 -10000 files each time (depending on the computer configuration),

getAllToDownloadContent(toDownload.splice(0, 1000), function (result) {

and then merge all the packages.

In the latest version, this problem no longer occurs! At least it didn't appear during my use!