I have the following page in a jQuery mobile site:
<div data-role="page" id="myPage">
<script type="text/javascript">alert("test");</script>
<script src="https://someexternalscript.js"></script>
</div>
The first script tag, with the script contained in it, is evaluated properly. Every time I navigate to the page, an alert is shown. The second script tag however, is only evaluated when I navigate the browser directly to this page. When I navigate through the site itself, it isn't being evaluated. I noticed with Fiddler that the source is being downloaded, it just doesn't seem to be evaluated.
Any ideas what could be causing this, and how it could be resovled?