Jquery.min.js Failed to load resource

Why is this link not working?

//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="Description" content=" [wstaw tu opis strony] "> <meta name="Keywords" content=" [wstaw tu slowa kluczowe] "> <meta name="Author" content=" [dane autora] "> <title>[tytuล‚ strony] </title> <link rel="stylesheet" href="style.css" type="text/css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $(".animat_kon").click(function () { $(".animat_text").slideToggle("slow"); }); }); </script> </head> 

error example: enter image description here

+6
source share
4 answers
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

you did not enable http: //

whenever you boot from the server directly, use http://

+12
source

Change

 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

in

 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

You missed http: . You can skip http: so that your browser automatically selects between HTTPS and HTTP. But in your case, the debugging tool does not seem to understand this syntax.

Find more information here: Can I change all my http: // links only to //?

+8
source

The link should begin with http://

+2
source

Change script src to:

  <link rel="stylesheet" href="style.css" type="text/css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript"> 

script src should start with http://

0
source

All Articles