![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,361
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Even if every html file had its own css file, I can't see how that would affect performance. The css for each file has to be parsed when each new html file is opened regardless of whether it's identical to the previous one or not. If one of the css files is massively huge, there may be a difference. But that would be the same with any massively huge file, I would think. No, I don't think performance would take a measurable hit by having html files use different, reasonably-sized css files (nor even by having some html files having multiple, smaller-sized css file linked). The only measurable performance lag I notice with epubs is with the initial loading-time of massive html files. |
|
![]() |
![]() |
![]() |
#17 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Bloated CSS will slow things down.
2, lean-mean CSS should not be noticeable Link both (if needed) to Just those sections as you indicated, for a lean book ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
I wouldn't really call it "bloated," but there are maybe twenty-five or thirty styles in my stylesheet. Of those, seven or eight are used in almost everything I build. The rest are mainly special things like a way to display a sign, or newspaper articles, picture layouts, etc. I don't delete them at the end of development because I don't ever really consider it "the end" of development--as I learn something nifty and new, I might want to go in and add it to any books where it's appropriate.
A good example is my "overline" style, which I have used maybe twice, but I don't want to go hunting down to see how I did it the last time, so it just sits and lurks in my stylesheet JustinCase. |
![]() |
![]() |
![]() |
#19 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Nothing wrong with starting with a stock 'house' stylesheet. IMHO just clean it of the unused before releasing the book.
If the book needs 'updates' that need missing , simply restore the house stylesheet, complete the updates, clean again. That is the beauty of having a house standard ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub styles question | nqk | ePub | 4 | 04-20-2015 05:26 AM |
How to turn off tooltips? | ktenney | Calibre | 8 | 01-23-2015 09:19 AM |
Disable tooltips? | jhalpin | Library Management | 7 | 06-08-2014 12:14 PM |
Question: paragraph spacing and CSS styles | rhino79 | ePub | 3 | 05-06-2013 05:06 PM |