jquery ajax CDN code example

Example 1: jquery cdn

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

Example 2: ajax cdn

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Example 3: jqeury cdn

//Note: This is for version 3.5.0. You can change it here \/
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>

Example 4: jquery cdm

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

Example 5: cdn jquery

//cdn 
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js

//file compressed
https://code.jquery.com/jquery-3.6.0.min.js


//file uncompressed
https://code.jquery.com/jquery-3.6.0.js

Example 6: how to start using jQuery CDN

<script
  src="https://code.jquery.com/jquery-3.4.1.js"
  integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
  crossorigin="anonymous"
></script>