- ASP.NET jQuery Cookbook(Second Edition)
- Sonal Aneel Allana
- 405字
- 2021-07-16 13:12:06
Downloading jQuery from jQuery.com
This recipe explains how to download jQuery on your system along with the version/build to use and the supporting files that are required.
Getting ready
Following are the steps to download jQuery:
- Launch any web browser and enter the URL http://www.jquery.com to access the jQuery home page:
- Click on the Download jQuery button (highlighted in the preceding screenshot) on the right-hand side of the page. This opens up the download page with a list of available files, as shown in the following screenshot:
How to do it…
jQuery is available in two different major versions at the time of writing:
- Version 1.x
- Version 2.x
Though the Application Programming Interface (API) is the same for both major versions, the difference lies in the support offered for certain browsers. The 2.x line does not support old browsers, such as IE 6, 7, and 8, while the 1.x line continues with this support. So, if the end users of your application will not be using old browsers, you can download the 2.x version.
The jQuery library consists of a single JavaScript (.js
) file and can be downloaded in the following formats:
- Uncompressed format: This is used in a development environment or when debugging the code.
- Compressed format: This is used in a production (that is, release) environment. It is compact and uses low bandwidth. It is commonly referred to as the minified version.
To download the file, simply right-click on the required version, 1.x or 2.x, and the required format: uncompressed or compressed. Save the file in a location of your choice as shown in the following screenshot:

Note the following naming convention for the jQuery library:
The compressed (minified) version is clearly distinct from the uncompressed version because of the .min.js
extension. The minified file uses code optimization techniques, such as removing whitespaces and comments as well as reducing variable names to one character. This version is difficult to read, so the uncompressed version is preferred when debugging.
On the download page, there is also a map file available with the .min.map
extension. Sometimes, when bugs appear in the production environment necessitating troubleshooting, the use of the minified file for debugging can be difficult. The map file simplifies this process. It maps the compressed file back to its unbuilt state so that during debugging, the experience becomes similar to using the uncompressed version.
See also…
The Understanding CDN for jQuery recipe.
- Vue.js 3.x快速入門
- MySQL數據庫管理實戰
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Visual FoxPro程序設計教程
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- C#完全自學教程
- Web開發的貴族:ASP.NET 3.5+SQL Server 2008
- Swift 3 New Features
- 區塊鏈技術與應用
- Babylon.js Essentials
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- 創意UI Photoshop玩轉移動UI設計
- STM8實戰
- Application Development with Swift
- 零基礎C#學習筆記