Website javascript not running on iphone (safari)
You might want to turn on the Debug Console. I note the last error I find on your page is "JavaScript: Error: undefined. JavaScript execution exceeded timeout".
SwiftD
Updated on July 05, 2022Comments
-
SwiftD almost 2 years
I do not have a specific block of code to post here, my website includes a fair bit of javascript/jquery which works great on android and modern desktop browsers (including Safari). However when I look at the site through an iphone none of the javascript is running.
Site is www.alexchapman.co.uk, I have checked that js is enabled on the iphone and I am not getting any error messages on the phone. The site is a bit slow so I am connecting to the site on the iphone via a wi-fi connection.
My question is where do I begin trying to sort this out. I don't have access to a mac. Is there anything I can run on the iphone similar to firbug or ie dev tools to try to see what's happening here? I tried the Electronic Mobile Simulator but this shows the site working fine (although I realise this isn't a proper iphone emulation)
Has anyone had a similar issue?
-
JayC about 12 yearsThat is, the iPhone Debug Console.
-
Nader Chehab about 12 yearsI apologize, my answer was meant to be a comment, but as a new user I did not have the option to add a comment to the original post.
-
SwiftD about 12 yearsThank you for your post, as above not answering my question but I have voted your answer up as its good info - I wasn't aware of a jquery mobile library. A seperate mobile site is not within the scope of what I am doing now, but may be something I will look at later on and when I do I will ceratainly be checking out the jquery mobile.
-
SwiftD about 12 yearsThanks for looking, I have corrected this for good measure but it isn't the issue as the problem remains
-
SwiftD about 12 yearsThis was what I was looking for, thank you - although I am now going to open another question to see if anyone knows how to solve this without splitting up my javascript into seperate files again. If JayC's link doesn't work for anyone looking. The instructions to start debug console on iphone are Settings->Safai->Developer(at bottom)->debug console on (God knows why they spread that info over 7 pages)