Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm mobile optimising a site with media queries. As I understand mobile browsers are generally quite modern and can handle CSS3 etc well. So does this mean javascript reliance for the mobile version isn't too much of a problem?

I know how to find stats on desktop users with no js, are the same stats available for mobile usage? Thanks

share|improve this question
1  
JavaScript reliance is always a problem, your website is made of HTML & CSS that should work. JS is bells and whistles. –  Raynos Oct 13 '11 at 16:10
    
Well 'reliant' is overstating the case, the site will still work. Im just wondering how likely it is a mobile browser will respect conditional stylesheets but not js. Thanks –  user793011 Oct 13 '11 at 16:24
    
smartphones (android, iphone) behave other phones are less pleasant. –  Raynos Oct 13 '11 at 16:28
add comment

1 Answer 1

up vote 3 down vote accepted

As Raynos said, Andriod devices and iPhones/iPads are just fine.

You can even use jquery mobile in order to take advantage of events that exists only in mobile devices, like touch, tap, rotate...

Relying heavily on javascript is never recommended however, ie, your website should work with only HTML and CSS. With less features, effects, but should work.

Another point to observe is that many mobile devices uses opera mobile/mini. Opera plays nice with javascript. So, the number of mobile devices with absolute no javascript support is decreasing day after day.

share|improve this answer
    
The trick, imo, is to differentiate between smartphones (including tablets, set-top-boxes, etc) and feature-phones (WAP/WML/iMode). If you're only focusing on smartphones (which generally have desktop-capable browsers), then like you said, JavaScript isn't a problem. If you also want to create content for feature-phones, then you will need to do significant work to make an alternate version anyway. –  John Mueller Oct 15 '11 at 16:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.