When you do not specify the protocol in this way: "//dominio.com/code.js"
the browser complete with the protocol of your page. If you are on http://localhost/
he’s gonna get the http
, if you are https://localhost
it will complete with https
and this sometimes causes some problem.
Another problem is that the main jquery library should always come before its derivatives, example:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-migrate.js"></script>
<script type="text/javascript" src="jquery-bxslider.js"></script>
This is because the jQuery code needs to be "set" so that other libraries can access it. If it is "set" after libraries, all of their functions using jQuery will fail.
tries to swap http for https. And the latter includes it.
– Marconi
Always include jquery before, after plugins etc..
– DontVoteMeDown
@Dontvotemedown has it too.
– Marconi
By the image you can see that the console is full of errors.
– Marconi