It looks to me that you have a local web page (with the cordova script included) and from there you change to the remote page (that also includes the script). I'm not sure this page change is going to work. If it worked, you might have to wait for the second deviceready event.
But you can just set the remote site page as the root page in the cordova app, no need for an intermediate "loader" page. Just set it in the config.xml file:
<content src="http://your.website.fake/index.html" />
You need to make sure that you allow loading your site in the app. In this same file, you should add:
<access origin="http://your.website.fake" subdomains="true"/>
I've tried it already, this way you are able to load the remote page, but not able to access the phongap api
What API are you using? If you are trying to use a third party plugin, AND provided you have included the plugin script in the site as well, it should work.
I'm using the built in camera plugin. It doesn't work. The only workaround I've found is to load the remote page in an IFrame inside a local page. And use js postMessage to communicate between them. Yet this solution is inconvenient and causes other issues (Same origin etc).
I've double checked that everything configured correct, and the same configuration and code works fine in local page. It looks like it is intentionally blocked by Cordova, as suggested by Rivera below. Yet, loading the remote page with Ajax sounds like something that could work, you should have started with that :) I'll try and update, thanks a lot!
@AliNaciErdem: The iframe method works just fine. but it causes other issues. see details here MisterSmith, I think i'll skip phonegap for my current project and simply use a JS interface that built in Android. I know it works with remote pages for sure.