Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I reasonably assume mobile browsers with JavaScript also support jQuery?

I realise that this question may be almost impossible to answer definitively, but:

Is it reasonable to assume that mobile browser with JavaScript can also cope with jQuery? We're talking relatively basic jQuery such as click events and Ajax.

I'm writing a mobile HTML app. It involves slippy maps so anyone who wants to use it has to have JavaScript.

I'd much prefer to use jQuery for the rest of the coding if possible, but can I reasonably say to the client "any phone with JavaScript should support basic jQuery"?

I know about jQuery mobile, but I'm specifically talking about phones that aren't advanced enough to handle jQuery mobile, but do have JavaScript.

Thanks!

like image 705
simon Avatar asked Jan 19 '23 22:01

simon


1 Answers

Yes.

jQuery is not a language. It is a library written in JavaScript, and therefore if you can run JavaScript reasonably well, you should be able to run jQuery without any problems.

With that being said, nothing compares to actual testing. Periodically check that your code works across multiple platforms (not only on different phones, but different web browsers as well).

like image 81
riwalk Avatar answered Jan 30 '23 07:01

riwalk