I'm currently building an app which will load a web page. Based on some user actions and response, I need to send a HTTP GET request. I realize that I have two options to achieve this:
- JavaScript - I can use JavaScript to make an AJAX request using my embedded JS file
NSURLConnection
- native IOS
Now my question is what is better in terms of UI responsiveness. I realize that NSURLConnection
may be a blocking call. Are there advantages of using NSURLConnection
over AJAX? Thanks in advance.