
jQueryをGoogle Libraries API から読み込む方法
2017/12/05
散々いろんな所で書かれている jQuery のロード方法ですが、何度も調べるのが面倒なので忘備録としてメモっておきます。
googleのサイトはこちら。
Google Libraries API - Developer's Guide - Make the Web Faster ? Google Developers
https://developers.google.com/speed/libraries/devguide#jquery
2012.07.27現在で、こんな感じ。
jQuery
name: jquerylatest version: 1.7.2 (view older versions)
path: https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
path(u): https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js
site: http://jquery.com/
note: 1.2.5 and 1.2.4 are not hosted due to their short and unstable lives in the wild.
最新バージョンは1.7.2ですね。
でもって、HTMLのヘッダにはこのように。
[html]
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
[/html]
httpsになっているので、セキュアなページからのリンクでも問題なし。
うーん便利だ。
[tgAmazonItemLookup asin="4844362720" related="1"]