Connecting Tech Pros Worldwide Forums | Help | Site Map

time to render table

oldyork90
Guest
 
Posts: n/a
#1: Jun 27 '08
Is there a way I can time browser drawing/rendering time for a given
element. I have a huge table. I have it's name. We'd like to
experiment with different combinations to speed things along. Can we
capture the time somehow?

Thanks

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#2: Jun 27 '08

re: time to render table


oldyork90 wrote:
Quote:
Is there a way I can time browser drawing/rendering time for a given
element. I have a huge table. I have it's name.
`table' elements cannot have a name as the `table' element type does not
have a `name' attribute. They can have an ID as the element type has an
`id' attribute. Anything else is invalid markup, see http://validator.w3.org/
Quote:
We'd like to experiment with different combinations to speed things
along.
Make your table much shorter.
Quote:
Can we capture the time somehow?
Yes, you can.

<script type="text/javascript">
var start = new Date();
</script>

<!-- markup -->

<script type="text/javascript">
document.write("<p>Rendering of the markup before took about "
+ (new Date() - start) + "&nbsp;ms.<\/p>");
</script>

should suffice. You may also use window.alert() instead of document.write().


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
oldyork90
Guest
 
Posts: n/a
#3: Jun 27 '08

re: time to render table


On May 16, 3:46 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Quote:
oldyork90 wrote:
Quote:
Is there a way I can time browser drawing/rendering time for a given
element. I have a huge table. I have it's name.
>
`table' elements cannot have a name as the `table' element type does not
have a `name' attribute. They can have an ID as the element type has an
`id' attribute. Anything else is invalid markup, seehttp://validator.w3.org/
>
Quote:
We'd like to experiment with different combinations to speed things
along.
>
Make your table much shorter.
>
Quote:
Can we capture the time somehow?
>
Yes, you can.
>
<script type="text/javascript">
var start = new Date();
</script>
>
<!-- markup -->
>
<script type="text/javascript">
document.write("<p>Rendering of the markup before took about "
+ (new Date() - start) + "&nbsp;ms.<\/p>");
</script>
>
should suffice. You may also use window.alert() instead of document.write().
>
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Thank you pointed ears!
oy
Closed Thread