Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobile Safari Not Loading Images When Using AJAX/JQUERY

Tags:

ios

mobile

safari

I have been fighting over an issue with Safari on the iPhone and iPad.

I'm developing a mobile single page app, of which for the most part is working. Except when it comes to any kind of AJAX injecting of images or toggling CSS classes that show images. When debugging I see it just polling and polling and polling some more trying to get the image asset.

Can someone tell me why I would be having this issue? Also if it's some kind of memory limit I am hitting what is the suggested workaround and or alternatives..

like image 594
dswatik Avatar asked Mar 20 '13 16:03

dswatik


1 Answers

I actually found the answer to my issue.

Through this thread on Apple's developer forum.

IOS6 / Safari limits one connection per server

My web app, has functionality to broadcast realtime updates to anyone browsing the site of which uses long polling. Thus anything else such as images can't load via Ajax because the active connection is being taken up at the time.

like image 186
dswatik Avatar answered Nov 07 '22 05:11

dswatik