satorumurmur / bibi

Bibi | EPUB Reader on your website.
https://bibi.epub.link
MIT License
859 stars 123 forks source link

Very slow loading problem #85

Closed hrvoj3e closed 4 years ago

hrvoj3e commented 4 years ago

Could you please check this file? Using epub.js it loads fast but bibi loads it 43 seconds (browser tab freezes in Chrome).

Bibi makes 4032 requests and loads 46.7 MiB of blobs. Epub file is only 4.8 MiB and unpacked 6.2 MiB.

screenshot-newtab-2020 06 15-09_06_04

satorumurmur commented 4 years ago

Thanks for trying and reporting.

Your EPUB consists of 1309 XHTMLs and all of them are reflowable content.

I'm so sorry but Bibi on now is not good at opening this kind of book which contains hundreds of items to be shown reflowable. (It's the problem around the number of the items, not the total size.)

In the future, I want Bibi able to load content asynchronously not only for pre-paginated/fixed-layout books but also for reflowable books. But for now, Bibi can't.

hrvoj3e commented 4 years ago

Too bad. Nice viewer, though.

Client has different epubs and we are trying to show then in a web viewer.

Can we load this kind of epub faster with Bibi?

satorumurmur commented 4 years ago

@hrvoj3e Thanks & sorry.


Can we load this kind of epub faster with Bibi? (...)

Take a look at these samples please.

If it's a fixed-layout book, Bibi will open quickly, even if it contains 300 or 400 or more items.