6

On desktop websites we always think "what if the user has JavaScript disabled" and we try to make our code gracefully degradable so we can at least display the important info.

But in Mobile browsers should we think the same way? Is there any reason to disable javascript in mobile browsers? Are they any securtiy threats via JavaScript for mobile websites?

http://hubpages.com/hub/How-to-enable-disable-JavaScript-on-the-Droid-Android-phone

enter image description here

Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852

1 Answers1

1

There is of course some security risk with JavaScript on mobile phones - if there wasn't, you could be sure that desktop browsers would have the same security! But mobile users are perhaps more likely to have JavaScript on because - especially on the iPhone - it has to stand in for Flash or Silverlight functionality. JS is also used to provide faux-native interfac controls to Web apps, and thus has even more added value.

Of course, it is ideal to support users without JavaScript. If it is feasible you should absolutely strive to do so unless dynamic interactions are so integral to your service that you cannot so without.

Winfield Trail
  • 5,535
  • 2
  • 27
  • 43
  • 6
    OR if you're on a budget and are instructed to not waste time / resources on the very small percentage of users who disable JS ;) – tomfumb Jul 12 '11 at 16:41
  • 1
    thought I covered that with "if it is feasible!" yes, and furthermore users who disable JS really have no right to complain. funny old world we live in, though... – Winfield Trail Jul 12 '11 at 16:46
  • does anyone have any stats on users who disable JS in their mobiles? – gpr Dec 12 '11 at 04:04
  • I don't have smartphone-specific numbers. In the United States, 2.06% of all users have JS disabled according to the Yahoo survey. The number of those which are mobile phone users is likely lower still. – Winfield Trail Dec 12 '11 at 22:27