Hope I'm not sidetracking the OP's question, but...
Bryce, I did try loading phonegap.js a number of ways- I tried adding
the event listener in the XUI window load event - then I found that
document ready/deviceready thread above and pulled it out of there.
Then I added the event listener to the body's onLoad handler, but
still it wouldn't fire the deviceready's function. If I leave the
deviceready event listener totally out of the mix and just load my
dynamic content via the body onLoad event, things load fine and I can
run Phonegap functionality. If I depend on the deviceready event
listener to run my dynamic content loader function, it never fires and
no Phonegap functionality is available - for example, I have a menu
button event listener that doesn't fire if it depends on the
deviceready event listener, but does work if I use body onLoad to call
a function that includes the menu button event listener.
I did mention this in a post earlier this week - though at the time I
thought it was Connection API related, which it's not:
http://groups.google.com/group/phonegap/browse_thread/thread/31668b452221d74b
This kind of sounds like what I'm experiencing, since this all seemed
to start happening once I started trimming down my page size, taking
out whitespace, externalizing css & js- I've not tried loading
phonegap.js twice, though:
http://groups.google.com/group/phonegap/browse_thread/thread/bcf500e6c0ee46f2/9e601da3dacd67d0?lnk=gst&q=register+onload#9e601da3dacd67d0