View Single Post
Old Yesterday, 06:47 AM   #8
jonnyl
Groupie
jonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolatejonnyl is generous with chocolate
 
Posts: 162
Karma: 33086
Join Date: Jan 2021
Device: Likebook Mars
Calibre has a built-in 'Polish books' feature which will remove unused CSS. I ran your book through it and it did an impressive job:

Quote:
### Removing unused CSS rules
Removed 23754 unused CSS style rules
Removed 3813 unused CSS selectors
No unused stylesheets found
It also reduced the filesize by about 400k. HOWEVER, it didn't make opening it in KOReader any faster. I wonder what else might be causing the extreme lag?

There is an easy fix for opening it quickly, though: Convert the book from epub to epub in Calibre. It will then open instantly.

Or alternatively, if you ever don't have access to Calibre, you can long-press on the file in KOReader and select Open with... MuPDF. You won't be able to change fonts, use style tweaks, etc., but it will open without delay.
Attached Files
File Type: epub scrambled_polished.epub (1.74 MB, 0 views)
File Type: epub scrambled_converted.epub (1.50 MB, 0 views)

Last edited by jonnyl; Yesterday at 08:02 AM. Reason: Attached files
jonnyl is offline   Reply With Quote