PDA

View Full Version : Style Sheets for 1.5?


devenh
22nd of February 2004 (Sun), 12:31
Noticed that the style sheets for 1.5 are embedded in the html as opposed to being in a seperate .css file. I would think that putting all the styles in a /styles directory would be simpler and more flexible.

Deven

Pekka
22nd of February 2004 (Sun), 12:49
Well, they are there, aren't they? :?:

devenh
22nd of February 2004 (Sun), 13:34
Yes, but 1.5RC2 is embedding them in the html rather than linking to them, so this increases the size of the page.

Deven

Pekka
22nd of February 2004 (Sun), 17:18
Embedding means as including files always does: the include command is replaced by contents of the file. So, there is no size gain, and you loose few milliseconds. And because the style file is parsed for each page it can not be .css file.

I also have seen very odd embedding problems, like last time in Mac the style sheet was loaded twice and second time it was ingored, when certain character set was used.

Style sheet in EE is about 2,22 KB is size, so it does not add much to html source file size (typically 20KB in 10 per page thumb list page).

Of course if excellent reasons are provided I'll add embedding link ASAP, but haven't got those reasons yet.

Later when I have time to optimize speed yet more, I'll see if parts of semi-static code can be cached and not parsed.