Check if Internet Connection Exists with jQuery? [duplicate]

How do you check if there is an internet connection using jQuery? That way I could have some conditionals saying “use the google cached version of JQuery during production, use either that or a local version during development, depending on the internet connection”.

9 Answers
9

Leave a Comment