janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.5k stars 1.32k forks source link

Reduce loading time of Comic Reader #1971

Open gabmak opened 3 years ago

gabmak commented 3 years ago

Is your feature request related to a problem? Please describe. With the current Comic reader, it will download the entire CBZ to the browser and extract it locally. This works fine with smaller CBZ files. But when it comes to bigger CBZ files like over 700MB, my iPad would even crash halfway downloading the XHR object. The same crash happens with my Android Emulator on my desktop with 4GB of ram assigned to it.

Describe the solution you'd like To reduce the loading time and reduce the bandwidth requirement, instead of unzipping the file on the device, I wonder if it is possible to do it on the server-side. It will be better if the comic reader request/load the first few pages first, then based on the reading progress, it will download the next few pages.

OzzieIsaacs commented 3 years ago

@wuzhican. I think you are requesting the same

OzzieIsaacs commented 3 years ago

The loading time should be reduced now, but the crash maybe still occours (at least for me)

gabmak commented 3 years ago

Great to hear that, I’ll test it this weekend.

gabmak commented 2 years ago

Looks like it's still crashing at around 600MB on mobile. It will be great if the comic reader can look for the index of the CBZ file in the server, send the first couple of the images to the client first, then proceed accordingly by the reading progress.

Rather than replacing the existing Comic reader, I think it is better to have a separate reader that is more 'mobile friendly' when it comes to big CBR/CRZ files