This page is not available in every language. Missing translations are disabled in the language selector.

Quick reference

jQuery CDN Script Embeds Cheatsheet

A quick reference guide for embedding official jQuery script releases via Google, Cloudflare (cdnjs), and official jQuery CDNs with integrity hashes.

· Published

A quick reference of production-ready CDN embed tags for jQuery.

Google CDN Embeds

<!-- jQuery 3.x (Recommended) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<!-- jQuery 2.x (Legacy non-IE8) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>

<!-- jQuery 1.x (Legacy IE6-8 compatible) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

Official jQuery CDN (with Subresource Integrity)

<script
  src="https://code.jquery.com/jquery-3.7.1.min.js"
  integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
  crossorigin="anonymous">
</script>

References

Related topics