W
W
WhatIsHTML2018-04-16 10:48:43
Google
WhatIsHTML, 2018-04-16 10:48:43

Why is jquery not loading from googleapis?

I include jquery at the top of the page, everything works fine.

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

Only periodically the error takes off
Can't find variable: $
It turns out in some cases jquery is not loaded. Most often this happens in Firefox 43.0. What is done wrong?

UPD:
The code is used internally
$(document)
    .ready(function() {})

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2018-04-16
@PavelMonro

Fix uploading to (this solves problems with the locale):
It also happens if Jquery did not have time to load. Wrap code in

$(document).ready(function() {
 Ваш код
});

A
A person from Kazakhstan, 2018-04-16
@LenovoId

You open this url from the script src and save it to where your project is and everything
https://ajax.googleapis.com/ajax/libs/jquery/2.2.3...
In general, we often have google and everything that is connected through it is not works, and this is the google youtube toster itself and any resources that have a script connected from them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question