0

I am new for jQuery mobile. My project consist of 30 screen++. So I separate my screen to each single html. But now i facing one issues , because i need to include cordova.js to my project. So did i need to include cordova.js to all html ? It tat any better solution? It quite take time to me for include cordova.js to 30++ html.

Code

<head>
    <meta charset="utf-8">
    <title>Smart Realtor</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">  
    <meta name="apple-mobile-web-app-status-bar-style" content="black"> 

    <link rel="stylesheet" href="css/smartrealtor-theme.css" />
    <link rel="stylesheet"  href="css/custom.css"> 
    <link rel="stylesheet"  href="css/themes/default/jquery.mobile.structure-1.4.2.css">
    <link rel="stylesheet"  href="css/themes/default/jquery.mobile.icons-1.4.2.css">
    <link rel="stylesheet"  href="css/jqm-icon-pack-fa.css">

    <script src="js/jquery.js"></script>
    <script src="js/globalsetting.js"></script>
    <script src="js/jquery.mobile-1.4.2.min.js"></script>
    <script src="cordova.js"></script>
    <script src="Calendar.js"></script>
    <script src="js/jquery.mobile.fastButtons.js"></script>
</head>
pbaris
  • 4,525
  • 5
  • 37
  • 61
user998405
  • 1,329
  • 5
  • 41
  • 84

1 Answers1

0

JQuery Mobile provides a JQuery mobile "page". These pages can be included in the same file but can also be loaded from separate files

If you use JQuery mobile pages you will only have to include dependencies on your main page rather than all of the sub pages. Please read the Page Documentation

ProbablePrime
  • 2,253
  • 2
  • 13
  • 10