473,847 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

time to render table

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
Jun 27 '08 #1
2 1613
oldyork90 wrote:
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/
We'd like to experiment with different combinations to speed things
along.
Make your table much shorter.
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>Renderi ng 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
Jun 27 '08 #2
On May 16, 3:46 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
oldyork90 wrote:
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.or g/
We'd like to experiment with different combinations to speed things
along.

Make your table much shorter.
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>Renderi ng 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
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2015
by: jb_in_marietta | last post by:
All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control renders fine in run time, but for some reason, it does not render properly in design time. In design time it renders something like this:
0
1153
by: Cabral | last post by:
Hi I creating object in run-time and render the webform, but when I want drop this object I don´t render the page without this object, but in next autopostback of the webform is render correct I use an arraylist in session page, and render the page below is the code thanks by time Cabra
4
4225
by: Zuel | last post by:
Hi Folks. So I have a small problem. My DoPostBack function is not writen to the HTML page nor are the asp:buttons calling the DoPostBack. My Goal is to create a totaly dynamic web page where the server generates the HTML based on a passed in parameter. In our case, CustomerID. Every Customer ges a branded website with there logos and webpage etc.. To Avoid having 1 ASP.Net application running for each client I am attempting a more...
2
1603
by: Tony | last post by:
I have a very peculiar problem that I am hoping someone can point me in the right direction on. I have an asp.net page that displays a virtual paycheck to a user. One asp.net page calls another that has its return type as a jpeg. This jpeg is an image of a paycheck that is written on top of with the appropriate information. The code runs fine on all of our development machines as well as our test server. But on our live server it...
7
3025
by: Shimon Sim | last post by:
I have a custom composite control I have following property
0
10648
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10707
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7883
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5719
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4529
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4119
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3164
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.