Results 1 to 2 of 2

Thread: Load time trapping for an application

  1. #1
    Sencha User riyaad's Avatar
    Join Date
    Jul 2011
    Location
    Cape Town
    Posts
    245
    Answers
    6
    Vote Rating
    2
      0  

    Default Load time trapping for an application

    Hi guys,

    I'd like to test the load time of my ST application. Question is where would be the place to put your start-time and your end-time code. window.onload would be great for trapping the end-time but where would one trap for the start-time. I have a tab panel (dataview loading remotely in the one panel) - would it be best practice to simply listen to the painted event?

    Thanks in advance ...
    R

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    You can have a <script> tag as the first tag in the <head> to set the start time. onload won't tell you everything as Sencha Touch may still be executing or loading files so you can do it in the launch method of your application for the end time.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •