Home > Web Front-end > Front-end Q&A > What is the difference between the normal version and the min version of jquery

What is the difference between the normal version and the min version of jquery

WBOY
Release: 2022-05-09 15:25:23
Original
3210 people have browsed it

Difference: 1. The normal version of jquery is an uncompressed jquery library with a relatively large file size, while the min version is compressed by the full version of the library, with blank characters, comments and other contents deleted; 2. jquery The normal version is generally used for reading and learning the source code or modifying the source code, and the min version is generally used for website reference to reduce file size.

What is the difference between the normal version and the min version of jquery

The operating environment of this tutorial: windows10 system, jquery3.2.1 version, Dell G3 computer.

What is the difference between the normal version of jquery and the min version

jquery official website provides two types of jQuery downloads, one is jquery.js and the other is jquery.min.js

The file names are not necessarily exactly the same, but usually:

jquery.js is a complete uncompressed jQuery library. The file is relatively large. It is generally used for reading and learning source code or modifying source code. It is generally not used online. project.

jquery.min.js is compressed from the full version of the jQuery library. The compressed function is exactly the same as the uncompressed version, except that whitespace characters, comments, blank lines and other content that has nothing to do with logic are removed. Removed and made some optimizations. This version is generally used for website reference, reducing file size, reducing website traffic, improving access speed, etc.

Summary:

The functions of these two versions are exactly the same, the difference Yes: the former is a compressed version and the latter is an uncompressed version.

The uncompressed version is suitable for development. Each code is formatted according to the code style to facilitate developers to analyze the source code;

The compressed version is suitable for application to actual projects, and the code is compressed. All comments, line breaks, and spaces have been removed, so the file size is much smaller than the uncompressed version.

Recommended related video tutorials: jQuery video tutorial

The above is the detailed content of What is the difference between the normal version and the min version of jquery. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template