Links don't work -- maybe because all pages aren't completely loaded
I'm building jqm multipage html files using php. Each file has a "home" page and additional reference pages. The reference pages take a bit --about .2 seconds get query results returned and get "printed" in the html file by php.
There are links (ordinary anchor tags) in the home page to the reference pages. It all works fine if I wait several seconds after the home page is displayed before clicking on any of the links. However, the links on that page don't work if I don't wait. I'm assuming that the reference pages haven't finished loading. Also, if I click on one of the links before the few seconds are up, I have to refresh the browser to start again.
I think I'm looking for an easy way to hold off displaying the home page until the reference pages are completed. I have seen posts about binding js to pageloads etc, but I'm too new to grasp what they are conveying. I'm not explicitly using any js on my pages. An answer in simple language will be greatly appreciated.