I figured this was a common scenario and was surprised not to find an answer here. So here it goes...
Some pages within my jquerymobile site are using external javascripts. I don't want these scripts to load on every page on the site. It's mobile and it should load fast.
How can I load the external javascript so it is available in the DOM when it needs to be referenced. I found this Stack article which seems to have a good technique: Using Javascript to load other external Javascripts
If I dynamically load this external javascript, should I use the pageinit event? http://jquerymobile.com/test/docs/api/events.html
If I use this event, will the script be loaded in the DOM by the time the page body references it... or will I get an object reference error?