Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Need help

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to use div property of dhtml and make timing information invisible at the time of the pageload event.
when everything in the page is rendered i want to make this timeinfomation visible and show how much time it took to render each component of the page.

can you please help me by giving some example or code?how should i catch the time information of the each component?


i want to have the format like at the end of the pageload timeing information should appear automatically which was invisible previously.

thanx
 
swapnil paranjape
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to get the time at which page started loading and time at which it finishes loading.
i have written the following code.in the code i want to add componenets in the body and note the time at which components starts loading.the component is the functionaliy which takes time for loading.can you plaese help me to modify the code ,i dont understand how to note the starttime for the components in the body?
can anybody show it by taking simple elements(or forms buttons etc) in the body as the exapmle.

in the head section i am using java script
onloadevent in the body i am calling function from head and using that function for measuring timedifference in pageload event.
i want to add componenets in the body.
and use the timing information
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just put


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

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

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

then you can get the times of each section and work from it there.

Eric
 
Normally trees don't drive trucks. Does this tiny ad have a license?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic