I am encountering an issue with a jQuery mobile site on the following page:
<div data-role="page" id="myPage">
<script type="text/javascript">alert("test");</script>
<script src="https://someexternalscript.js"></script>
</div>
The first script tag functions correctly, displaying an alert every time I visit the page. However, the second script tag is only evaluated when directly navigating to the page in the browser. When navigating through the site itself, it does not get evaluated. I observed using Fiddler that the source is being downloaded, but it appears that the script is not being executed.
Any suggestions on what might be causing this issue and how it could be resolved?