Quote:
Originally Posted by JustinThought
I've got that going on in something I'm working on now. I have a specific style I've gotten from somewhere else on this forum, and during testing I placed it into a separate stylesheet (for some reason--it seemed to be the thing to do at the time). That style is used in only about five or six chapters out of the book, so I have only linked that sheet to those chapters.
So my question is, is there a speed issue here? Could linking that unused stylesheet--or copying those specific styles into my main stylesheet--cause some slowdown in the overall epub? --Or the inverse, could copying that style into my main stylesheet and deleting the "extra" one speed up the the process?
I've been curious about this because my I re-use the same stylesheet in every epub I do, and it has styles that are often not used in that specific book. And I don't go out of my way to delete the unused styles at the end of development. So am I setting a little "time"-bomb here?
|
Do you mean when more than one css file is linked with an html file? That's the only way I could see there being any "slow down" (though I'm not certain how it would be measured).
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.