I assume you are using the FILE
protocol rather than an HTTP server on your machine.
The use of the abbreviated protocol //
only works if the page loads in HTTP
. On pages with protocol FILE
//
is interpreted in Windows for example as D:
or C:
( or rather saying //
accesses the root folder), rather than pulling the CDN server from Jquery the files the browser will try to pull from your local machine.
The preferred one to develop on your machine is to use an HTTP server as:
Read about the HTTP protocol: link
So when using Apache (for example) with <link href="//...">
the browser will interpret //
as http
or https
.
The advantage of using //
is that your page is HTTPS
(http with security certificate) , there will be no "security locks" or "error messages" (of course the CDN you use will have to be supported by SSL
or TLS
).
But if you are sure that you will not use https
on your site, then use http
without "abbreviation" or you really want to develop at FILE
:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script><scriptsrc="http://code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">