So we have this website, and as far as I can tell only through the Virgin Mobile 3G cellular network (on an iPhone 4), HTML pages have all of the script and style tags in the head with a src set to a URL inlined within the document.
Merely switching to WiFi or using a device with a different cellular network (like AT&T) and the HTML page will not change.
I can see how this is an optimization to speedup the load time of pages, but one of our scripts will only work if they are not inlined.
Example response not using the Cellular network:
<html>
<head>
<script type="text/javascript" src="http://oursite.com/script.js"></script>
</head>
</html>
What we get using the Cellular network:
<html>
<head>
<script style="display: none">
// The contents of http://oursite.com/script.js (this is bad)
</script>
</head>
</html>
Is this actually the case or am I just insane? Is there a way to prevent the cellular provider from inlining our script elements?