Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What versions of mobile WebKit support JavaScript Workers?

My Google-fu is failing me. I'm trying to determine what version(s) of mobile WebKit (iOS, Android, Blackberry Torch, etc.) support the HTML5 feature JavaScript Workers. Anyone know for sure?

EDIT I've created a page that logs whether your browser supports the Worker API. Please hit it if you have a mobile WebKit device and I'll post a summary after a while. Thanks!

EDIT II I finally got a round tuit and added the ability to see a summary of the results. Same link: http://segdeha.com/w/workers.html

like image 802
Andrew Hedges Avatar asked Aug 24 '10 21:08

Andrew Hedges


2 Answers

Here's results based on my own feature detection tests:

var supportsWorkers = !!window.Worker;
  • iOS 4.0.2: no (simulator)
  • iOS 4.0.1: no (simulator)
  • iOS 4.0: no
  • iOS 3.1.3: no
  • iOS 3.0: yes
  • iOS 2.2.1: no (iPhone 2G)

  • Android 2.2: no (Nexus One and emulator)

  • Android 2.1-update1: yes
  • Android 2.1: yes
  • Android 2.0: yes
  • Android 1.6: no
  • Android 1.5: no

  • BlackBerry 6: yes (tested on BB 9800 Torch)

  • webOS 1.3: no (emulator)
  • Fennec/1.0b1: yes (emulator)

Some of these were tested on actual devices, and some on the emulator. The results are kind of interesting.. it looks like it was enabled and then disabled later on both Android and iOS. Keep in mind this is just a feature test, not an actual functional test.

like image 140
David Calhoun Avatar answered Nov 19 '22 18:11

David Calhoun


Update: Current iOS (5.1) does support Web Worker (tested with iPad 2 and the URL linked above in the question.

like image 31
Samuel Avatar answered Nov 19 '22 17:11

Samuel