There are two ways to start using jQuery on your website. You can use both methods as follows:
- Download the jQuery Library from jQuery.com and place it under the head link in your webpage.
- Go to Google and search https://code.jquery.com/ and click on the version that is uncompressed, then you will find the online CDN jQuery link.
How to Download jQuery in Webpages?
We have two versions of jQuery download available:
- Production Version
- Development Version
Both of these versions can be downloaded from https://jquery.com/download/
Note:- This jQuery link will always be inside the <head> tag
jQuery CDN link
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
See an example of where to put a jQuery link
<head> <script src="jquery-3.5.1.min.js"></script> </head>
Note:- Put it this way only when jQuery is downloaded.
Why use jQuery in webpages.
One of the unbelievable benefits of utilizing jQuery expedited by Google is: Numerous purchasers have effectively downloaded jQuery from Google whereas visiting another web site. consequently, they’re going to be stacked with store once they visit your website, prompting faster stacking times. to boot, most CDNs can guarantee that after a consumer demands a record from them, it’ll be served from a detailed by employee, that likewise prompts faster stacking time.