Phonegap Android app start up time

300 views
Skip to first unread message

Sam Lim

unread,
Mar 31, 2012, 11:44:16 AM3/31/12
to phonegap
Hi,

how do i make my android app start up quickly ?
its used to take 3-4 secs
but once i added adsense into it, it has double the start up time.
8-10secs
what could be the problem ?
what should i do to make the app start up faster ?
its has only 1 index.html with just 5 pages within, using JQM as
framework

2nd question,
Is it better to use html redirect instead of coding everything in the
index.html ?

Thanks

filmaj

unread,
Apr 1, 2012, 5:53:39 PM4/1/12
to phonegap
Are you integrating adsense using JavaScript, i.e. including some kind
of JS script from adsense? If so, are you dropping the script
reference into the <head> or at the bottom of your HTML document? If
it's near the top of your document then it will stall execution/
rendering of the rest of your document until the script tag is loaded
fully from adsense's servers.

If you have a script tag inserted for third party scripts hosted on an
external server then I recommend dropping that script tag right before
your closing </html> brace.
Reply all
Reply to author
Forward
0 new messages