To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.publishOpen lugnet.publish in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Publishing / 1813
1812  |  1814
Subject: 
Re: Haylp! Why does NN take ages to load these tables?
Newsgroups: 
lugnet.publish
Date: 
Tue, 21 Mar 2000 23:00:07 GMT
Viewed: 
823 times
  
In lugnet.publish, Richard Franks writes:

Warning: Although these pages take about 20 seconds to load on my p166/linux,
they do 'freeze' it for that period - while it hasn't actually crashed
anything on my end, something squiffy is going on - so I disclaim any
responsibility if it does crash your machine.

With javascript
<http://lightning.prohosting.com/~spontif/temp/haylp/>

Without javascript
<http://lightning.prohosting.com/~spontif/temp/haylp/index2.html>

These are just simple recursed tables. I don't know if it is a Netscape bug,
or whether MSIE freezes too - has anyone come across this sort of thing
before? I'm a bit of an HTML newbie, so I could just be using incorrect tags,
or something really obvious.. or maybe there are known performance decreases
when tables are recursed?

In summary - Haylp! If some really kind guru wanted to,
<http://lightning.prohosting.com/~spontif/temp/haylp/haylp.tgz> has all the
files in one neat directory :)

Well... a couple things, I think...
1st, I'm not sure if having <TABLE><TD>blah</TD></TABLE> is "legal"...
According to O'Reilly's _HTML_The_Definitive_Guide_ (3rd ed, copyright 1998):

"The only content allowed within the <table> is one or more <tr> tags, which
define each row of table contents, along with the various talbe sectioning
tags: <thead>, <tfoot>, <tbody>, <col>, and <colgroup>."

Hence, you SHOULD have <TABLE><TR><TD>blah</TD></TR></TABLE>. I think browsers
allow what you've done (they let you slack on things like ending tags, etc.),
but it may add processing time, trying to figure out what row it's placing it
in... NN may be creating an instance of a <TR> around it... and when that gets
recursed to this degree, it may be adding lots of compute time... not sure,
though...

2nd, don't specify the sizes of your images in <IMG> tags-- do this in your
tables, or not at all!... When you specify the size of an image in the IMG tag,
NN (and I think MSIE too) automatically resizes the image to your
specifications, and hence has to go through a resizing routine... and that adds
time...

3rd-- It looked like there was one extra surrounding table? looked like you
had:
<TABLE ...>
<TABLE ...>
.....
</TABLE>
</TABLE>
You could (and probably should) remove that outer table-- as an aside, any data
INSIDE a <TABLE>...</TABLE> that is OUTSIDE a <TD>...</TD> usually gets
displayed above the 1st row of your table. This MAY also add processing time,
but I don't really know... at this level of recursion, it's hard to say...

Anyway, that's all I can suggest ... hope it helps!

DaveE



Message has 2 Replies:
  Re: Haylp! Why does NN take ages to load these tables?
 
(...) the (...) routine... (...) I'll have to disagree here. Please, always specify the dimensions of the images in the <IMG> tag. That way, the browser knows how much space to set aside for the image before the image is entirely loaded. Otherwise, (...) (25 years ago, 21-Mar-00, to lugnet.publish)
  Re: Haylp! Why does NN take ages to load these tables?
 
(...) Ah.. owning a book like that would probably be a start *blush* :) (...) D'oh! Thanks for that, *tweak*, I took it out and it still displays, but with the same delay.. (...) Yup, removed the extra table and it still works at the same speed. I (...) (25 years ago, 22-Mar-00, to lugnet.publish)

Message is in Reply To:
  Haylp! Why does NN take ages to load these tables?
 
Warning: Although these pages take about 20 seconds to load on my p166/linux, they do 'freeze' it for that period - while it hasn't actually crashed anything on my end, something squiffy is going on - so I disclaim any responsibility if it does (...) (25 years ago, 21-Mar-00, to lugnet.publish)

15 Messages in This Thread:







Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR