View Single Post
Old 02-27-2026, 05:47 AM   #8
jonnyl
Groupie
jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.jonnyl is no e-book dilettante.
 
Posts: 168
Karma: 53122
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, 37 views)
File Type: epub scrambled_converted.epub (1.50 MB, 33 views)

Last edited by jonnyl; 02-27-2026 at 07:02 AM. Reason: Attached files
jonnyl is offline   Reply With Quote