jQueryをGoogleのCDNから読み込む方法

菱田直哉
jQueryはダウンロードしなくても、使えます!

Google : https://developers.google.com/speed/libraries/#jquery

モリー
バージョンも選べますのでリンクから確認してね。

簡単に言うと

jQuery

3.x snippet:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js”></script>
2.x snippet:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js”></script>
1.x snippet:
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js”></script>

jQuery UI

<link rel=”stylesheet” href=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css”>
<script src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js”></script>