6 Feb 2013 10:12 AM #1
Unanswered: Load time trapping for an application
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 ...
8 Feb 2013 8:07 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.