HighDots Forums  

Performance of CSS vs HTML

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Performance of CSS vs HTML in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
prino
 
Posts: n/a

Default Performance of CSS vs HTML - 09-11-2007 , 09:00 AM






I've written a bunch of REXX edit macros to convert JCL, PL/I, REXX
and SuperC output into a HTML format that very closely mimics the
display of the ISPF editor with "HILITE ON PAREN".

Initially I was quite happy that it would just display the data, but
then I thought "Why not add some ISPF like scrolling to it?" As a
complete novice to HTML, this was not very doable for me, but after
asking around, Derek Patteson of <http://
www.smallofficesolutions.co.uk/> was kind enough to produce something
for me for a pretty nominal amount.

Now, the original code works OK and the HTML loads in seconds, even
for the largest file (1.5Mb, 10965 lines) I could create. However, if
I slot the same data into Derek's skeleton, IE's CPU usage goes to
95-99% and rendering takes ages - I 've not even tried this big one.
Derek's code also scales the data to the browser window and a resize
of the window followed by a refresh will take horrible amounts of time
- a 3000 line page has been resizing itself for the past two hours...

I've done some investigating and it seems that the culprit is a 'white-
spacere' CSS tag - using '<pre>...</pre>' HTML tags will speed up
things tremendously (only can test on IE6 right now), but the '</pre>'
tag insists on adding a space after it (again IE6) which screws up the
last line of the display.

My question is, is this difference between using CSS & HTML normal and
how, if possible, can I do something about it?

Robert


Reply With Quote
  #2  
Old   
John Hosking
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-11-2007 , 10:39 AM






prino wrote:
Quote:
Derek Patteson of <http://www.smallofficesolutions.co.uk/> was kind
enough to produce something for me for a pretty nominal amount.
Well, without a URL to the page you're actually talking about, all I can
say is that based on *this* URL, I wouldn't get my hopes up for quality
coding. The page/site looks rather ... nominal.

Quote:
I've done some investigating and it seems that the culprit is a 'white-
spacere' CSS tag - using '<pre>...</pre>' HTML tags will speed up
things tremendously (only can test on IE6 right now),
Well, you're ahead of us. ;-)

Quote:
but the '</pre>' tag insists on adding a space after it (again IE6)
which screws up the last line of the display.
Even with pre {margin-bottom:0;} in the CSS?

Quote:
My question is, is this difference between using CSS & HTML normal and
how, if possible, can I do something about it?
To be a bit pedantic, one doesn't use *either* HTML or CSS; the CSS is
nothing without some markup for it to apply to. It's possible to use
HTML with adding any CSS (although browsers may have a default
stylesheet), but it doesn't go the other way.

I've never seen any huge hit strictly from adding some necessary styles.
I _have_ seen some ridiculously large stylesheets which overspecify
things and create a burden on the whole process. Show us some URLs (you
said you had some original code and HTML, and then there's a new page
with CSS) so we can discuss in an informed way.


--
John
Pondering the value of the UIP: http://improve-usenet.org/


Reply With Quote
  #3  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-27-2007 , 11:08 AM



On 11 Sep, 15:39, John Hosking <J... (AT) DELETE (DOT) Hosking.name.INVALID>
wrote:

Quote:
Well, without a URL to the page you're actually talking about, all I can
say is that based on *this* URL, I wouldn't get my hopes up for quality
coding. The page/site looks rather ... nominal.
But, but,
"We are proud to be working toward Quality Certification to ISO9001
(2000) standard"
8-)

If I ever needed an example to support the "all valid CSS sites look
boring and boxy" canard, then I might use that site. Except that it's
not valid.



Reply With Quote
  #4  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-27-2007 , 02:42 PM



On 27 Sep, 14:46, prino <pr... (AT) bigfoot (DOT) com> wrote:

Quote:
font:normal 48px/52px courier new;
Just WT_F_ are you trying to do here?

These people are incompetents and their web design is worthless. Throw
it away.

Also learn what "post a URL means", lest we regard you as equally
clueless.



Reply With Quote
  #5  
Old   
Rob
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-28-2007 , 03:15 AM



prino schreef:

Quote:
Ever thought about the fact that the poster may not have a personal
website and that the code shown comes from an intranet page?
Maybe you could ask the folks in
comp.infosystems.intranet.authoring.stylesheets


--
Rob


Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-28-2007 , 08:43 AM



prino wrote:
Quote:
On Sep 27, 5:22 pm, "Jonathan N. Little" <lws4... (AT) centralva (DOT) net
wrote:

Incredible! It is amazing how the meaning of three little letters can
elude so many folks! Especially folks via GG that cannot seem to use
Google! Okay prino, I'll help you out.

Ever thought about the fact that the poster may not have a personal
website and that the code shown comes from an intranet page? This code
has been dumped in my lap and whereas I've worked with PL/I & REXX for
about two decades, CSS and Javascript (and to a lesser extent) are
still mostly completely foreign to me.
We never heard that on before. Try Google again:

http://www.google.com/search?hl=en&q...=Google+Search
free web hosting - Google Search

And put up a sample page, then list a URL! Don't post tons 'o code.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #7  
Old   
Bergamot
 
Posts: n/a

Default Re: Performance of CSS vs HTML - 09-28-2007 , 07:56 PM



prino wrote:
Quote:
Ever thought about the fact that the poster may not have a personal
website and that the code shown comes from an intranet page?
Ever thought that we haven't heard that story about a million times
already? What makes your situation different from any of them?

This isn't a help desk, but if you want to use it as one, then make it
as easy as possible for us to help you. Posting code is not the way.
Posting a URL is. That's the accepted convention of this group, like it
or not.

Quote:
This code has been dumped in my lap
Sorry, but that's not really our problem.

--
Berg


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.