Calling the $.mobile.changePage() function on the pageinit function sounds like a bad idea because it should cause an infinite loop. The $.mobile.changePage() function initializes the page specified as the target parameter, so every time you call $.mobile.changePage() , you also pageinit event.
You probably want to bind to the mobileinit event to overwrite the $.support.cors variable before jQuery Mobile is initialized:
<script src="jquery.js"></script> <script> $(document).bind("mobileinit", function() { $.support.cors = true; $.mobile.allowCrossDomainPages = true; $.mobile.changePage("http://jquery.com"); }); </script> <script src="jquery-mobile.js"></script>
Related Documentation:
source share