Including jQuery to your web page
There are two ways of installing jquery to your web page
- Downloading jQuery file from jquery.com .
- Using jQuery form CDN (content Delivery Network ) .
you can download jQuery from jquery.com
There are two versions of jQuery available for downloading:
Production version – this is for your live website because it has been minified and compressed
Development version – this is for testing and development (uncompressed and readable code)
after download jquery file you can reference its location to src attribute of <script> tag inside <head> tag .
If you don’t want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network). Both Google and Microsoft host jQuery.
It will be served from the other server. CDNs can offer a performance benefit by hosting jQuery on servers spread across the globe . Faster loading .