![]() |
#1 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
CSS mess
Why is it that a lot of publishers feel that having hundreds of unused CSS styles int he CSS is a good idea?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Because it makes it easier for them to develop the books. One common stylesheet across all their books containing all the things they want.
Or, they are using a tool that generates more than you think is needed. And of course, because it doesn't really matter. The books display properly, and a few extra styles won't harm. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
But with some older Readers, this can slow things down and in some cases, causes them to not work properly.
Using Calibre, it takes less than 30 seconds to dump all of those unused styles. Last edited by JSWolf; 04-09-2017 at 08:55 AM. |
![]() |
![]() |
![]() |
#4 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've read of problems with some version Sony Reader and some other Readers no longer made. This was back when the processors were slower and the ram, not as much.
Oh and I remember one case of someone having trouble doing a conversion of an eBook because Calibre ran out of memory. The solution to that was to clean up the CSS and do the conversion again. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
And don't forget, the publishers have no interest in the purchasers doing anything other than read the book. If you told them the code was bad, there response would probably be something like, "So what?" or "Could you read the book?" |
||
![]() |
![]() |
![]() |
#7 |
Serpent Rider
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,123
Karma: 10219804
Join Date: Jun 2009
Device: Sony 350; Nook STR; Oasis
|
I laugh in the face of your so-called problem, JsWolf. I hope things like this keep popping up for you.
|
![]() |
![]() |
![]() |
#8 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It is not that they want a consistent code 'style'
It is the final question: Why not clean out the unused upon release? If they need edits, the simply replace the cleaned sheet with the Master sheet and clean again upon the release of the update. This is like shipping a custom cabinet with the sawdust remaining One word: "Lazy" ![]() |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I never said it's a problem. I'm just asking why some publishers use a CSS with hundreds of unused styles. There are even cases where they put classes in the XHTML flies that have no CSS equivalent.
|
![]() |
![]() |
![]() |
#11 |
Just a Yellow Smiley.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
|
![]() |
![]() |
![]() |
#12 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
|
Quote:
Quote:
It's noteworthy however that the comparison is with something produced by a craftsperson, where a good part of the value comes from knowing it's made to a certain standard. I doubt even among the 2% there's few who'd value their ebooks more because of the clean internal design. Quote:
|
|||
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
We've read of problems with Readers because of some book. I have no idea if maybe any of these books are causing a problem because of the overabundance of CSS classes.
|
![]() |
![]() |
![]() |
#14 | |
Gnu
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,222
Karma: 15625359
Join Date: Jul 2009
Location: UK
Device: BeBook,JetBook Lite,PRS-300-350-505-650,+ran out of space to type
|
Quote:
If you know excess CSS is causing a problem with any reader then you may have a leg to stand on, on an anecdotal note, my Sony 650 hasn't had any problems. |
|
![]() |
![]() |
![]() |
#15 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
|
Quote:
Later, with the advent of ISDN (paired) and DSL, this became less and less necessary and we became lazy in removing extra lines or cleaning up code (beside what you have to do to keep it managable, naturally). Later still, even though broadband was the standard, we had to return to the pre-DSL time and make pages as small as possible again: mobile phones. Time was again put in to clean any non-required spaces. Now, with almost unlimited mobile bundles (at least, on this side of the big pond), developers are getting lazy again, and don't clean their code as they should. It might be "efficient" on the creator's side: no excess time spent, but most certainly not efficient on the reader's side: larger than required files, which might take longer to process, because of nothing important. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
Please help before i mess up more | Mad_Scientist | General Discussions | 12 | 10-27-2014 05:37 PM |
what a mess | dlsh1962 | Devices | 4 | 08-06-2012 04:54 PM |
Override ePub CSS with userStyle.css? | barium | Sony Reader Dev Corner | 11 | 07-16-2011 03:25 PM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |