Why don't external JS files load on mobile site built with jquerymobile/JQM?
The problem turned out to be that a call to the in_array() function in the jquerymobile module did not use the optional third parameter for strict type comparison, so array keys that were strings were getting cast to the integer zero when compared to another zero, and returning true.

The fix was to add the TRUE parameter to the call to in_array.

Here is a quick sample that proves the problem:

&lt;?php

$haystack = array('foo', 'bar', 'baz', 'bat');

$needle = 0;

$test = in_array($needle, $haystack); // same as in_array($needle, $haystack, FALSE)

var_dump($test); // bool(true)

$test2 = in_array($needle, $haystack, TRUE);

var_dump($test2); // bool(false)

?&gt;


Patch file is uploaded on the drupal.org issue.