I'm making an app where one of the common uses is to record a photo
that's auto saved and time stamped - so all users have to do is open
the app, press a button to trigger the camera app, and take the
picture. So I'm trying to get the "open the app" phase to be really
quick, so users don't feel any friction in using the app.
Today I moved from jQuery to Zepto, and I shaved a good 400ms that
way. You can see my loading times in this spreadsheet:
https://docs.google.com/a/everyday.io/spreadsheet/ccc?key=0Aq_a4WNAMuCEdDdjSlhyWXJaTkQ0TVJFc1k1RzlTTlE#gid=0
*These were done on an Android N1.
I now have it so that all the steps up until the document ready event
take about 1000ms, but then there is still an average of 3000ms after
that until the deviceready event fires -- and I need that event to
fire for the user to be able to use the Camera API.
So, I'm trying to understand more about that event, why it's slow, and
what I can do (if anything) to speed it up. A few questions to guide
me:
- Does the deviceready event depend on how long the page takes to
load, or is it independent of that process? (i.e. if I get the page to
load even faster, will deviceready fire sooner?)
- How much does the deviceready event latency vary based on device? Is
what I'm seeing on the slower end, average, faster?
- Is the deviceready event affected by how many files are in the app
package? Is it affected by the amount of data storage used by the app?
- Does the deviceready event coincide with the visual appearance of
the webpage? (I tried to time this to see, and I think it does not,
but I'm not certain).
Thanks for any clarification you can provide!
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
To compile in the cloud, check out build.phonegap.com
---
You received this message because you are subscribed to a topic in the Google Groups "phonegap" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phonegap/Gr8tR_tiFrY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.