So I am currently working on an iPad App (iOS 6) that shows a webpage that is located on my company's intranet. The access from the Internet is achieved via a reverse proxy which works great.
The problem is that this webpage is referencing a JavaScript file that is apprently loaded after the webpage is rendered on the client which results in some jQuery scripts not being run on load time. What works is this:
- open the website through the reverse proxy
- wait for the webViewDidFinishLoad delegation method to be called
- then do [webView reload];
After this, the javascript code is successfully executed. However the solution is not pretty and results in extended wait times.
Are there any solutions to ensure that all referenced files are loaded before rendering takes place?
Thank you! Christoph