I have an index.html page that loads jquery and jquery mobile libraries (latest versions) with links to two other pages.
<a href="page2.html" class="ui-state-persist" id='some_id' data-role="button" data-theme="e" >Page2</a>
<a href="page3.html" class="ui-state-persist" id='some_id' data-role="button" data-theme="e" >Page3</a>
Is it possible to include custom javascript files in page 2 and 3? If I include them like this page2.html renders properly, but js file seems to be ignored. The goal of this is to distibute the wait time in loading javascript between the main menu and application pages.
page2.html:
<!DOCTYPE html>
<html>
<head>
<title>My Apptitle>
<meta charset="utf-8"/>
<!-- custom files and libraries -->
<script src="../js/mycode.js"></script>
</head>
<body>
<div data-role="page" id="preTktTab">
<div data-role="header" data-position="inline">
<!-- and so on -->