Skip to content

Instantly share code, notes, and snippets.

@yoshifumi0521
Created November 17, 2012 09:51
Show Gist options
  • Save yoshifumi0521/4094581 to your computer and use it in GitHub Desktop.
Save yoshifumi0521/4094581 to your computer and use it in GitHub Desktop.
jQueryのロードのやり方。
<!DOCTYPE html>
<html>
<head>
<title>jQueryのロード</title>
<!-- jQueryを、Google Libraries APIで読み取る。最新版の1.8.3を読み取る。 -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>
<!-- もし、Google Libraries APIが何らかの理由で読み取れなかった場合の処理。 -->
window.jQuery ||
document.write('<script src="jquery-ui.min.js"></script>');
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment