I am using relative path to include jquery mobile. But when loading thru a secure(https) link, the imports are failing. I do the following :
<link rel="stylesheet" href="//code.jquery.com/mobile/1.1.0/jquery.mobile.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
jquery from googleapis goes thru fine. But I get the the following error for mobile .js and .css imports above.
Failed to load resource https://code.jquery.com/mobile/1.1.0/jquery.mobile.min.css
Failed to load resource https://code.jquery.com/mobile/1.1.0/jquery.mobile.js
Sorry if this seems like a pedestrian question, I am new to this.
If you click on both of the failed resource links, you’ll understand why.
code.jquery.com doesn’t have a valid SSL certificate.
As Quinn says, you should copy those JS files to your server and serve them yourself, or set up a proxy page in PHP or another scripting language that will fetch the files over HTTP and serve them up from your server.