Home  >  Article  >  Web Front-end  >  What is the difference between slim version and standard version in jquery

What is the difference between slim version and standard version in jquery

青灯夜游
青灯夜游Original
2023-01-18 17:03:452610browse

The difference between the slim version and the standard version: 1. The slim version is a simplified version that lacks modules such as Ajax and special effects than the ordinary version; if developers do not use AJAX, effects and other functions, they can choose to use Slim version of jQuery. 2. The slim version is smaller than the ordinary version. The slim version is about 6k bytes smaller than the ordinary version. The compressed size of the slim version is 23.6kb, while the size of the standard version is 30kb.

What is the difference between slim version and standard version in jquery

The operating environment of this tutorial: windows7 system, jquery3.6 version, Dell G3 computer.

In addition to the standard version, jQuery 3.0 also launched a brand new model version, which we can call a slimmed down version, officially named "Slim".

slim, Baidu translation: slender; slender, slender; tiny; worthless.

The difference between jquery slim version and standard version

The slim version lacks Ajax and special effects modules than the ordinary version. If you don't use AJAX, effects and other functions, you can choose to use this slim version of "Slim" jQuery. Its compressed size is 23.6kb, while the size of the standard version is 30kb.

译文

Sometimes you don't need ajax, or you prefer to use one of the many standalone libraries that focus on ajax requests. And often it is simpler to use a combination of CSS and class manipulation for all your web animations. Along with the regular version of jQuery that includes the ajax and effects modules, we've released a “slim” version that excludes these modules. The size of jQuery is very rarely a load performance concern these days, but the slim build is about 6k gzipped bytes smaller than the regular version – 23.6k vs 30k.

Google Translate:

Sometimes you don’t need Ajax, or you prefer Use one of the independent libraries focused on Ajax requests. As with all web animations, it's usually simpler to use a combination of CSS and class manipulation. In addition to the regular jQuery version that includes the ajax and effects modules, we also release a "slim" version that excludes these modules. jQuery's size is rarely a performance issue these days, but the slim version is about 6k bytes smaller than the regular version (23.6k vs 30k gzipped).

Size screenshot:

What is the difference between slim version and standard version in jquery

bootstrap 4, the default slim version introduced in the official manual.

Extended knowledge: Summary of differences between the three major versions of jQuery

##1.x, 2.x, 3.x three major versions Differences between series

1, Comparison of IE support

(1) Situation analysis

1.x: Supports ie6, ie7, ie8

2.x, 3.x: do not support ie6, ie7, ie8

(2) Selection suggestions

If you need to be compatible with ie678: you can only choose 1.x

If you do not need to be compatible with ie678: you can choose 2.x or 3.x. Because most of the code in 1.x is compatible with old browsers, this increases the operating burden and affects operating efficiency.

2. Comparison of plug-in support status

(1) Situation analysis

Because jQuery versions are not backward compatible, plug-ins developed based on jQuery will There are compatibility issues. That is to say, when a new version of jQuery is launched, the original plug-in may not work properly, and the plug-in author needs to re-develop a new version.

(2) Selection suggestions

In order to ensure better compatibility with various plug-ins, you can choose version 1.x.

3, Comparison of new features

(1) Compared with 1.x, 2.x does not add any new features. The main reason is to remove the support of ie678, improve the performance and reduce the Physical examination.

(2) Compared with the previous version, 3.x has added many new features and also changed some previous features

1.x Commonly Used Version

  • 1.4.2: The stability and compatibility are excellent, with the most plug-ins, but the performance is not as good as the following versions.

  • 1.7.2: Performance improvement, second most plug-ins, apis such as ajax and attr have been slightly modified.

  • 1.8.3: The last stable version that supports IE6

  • 1.9.1: Many methods and event bindings have been removed at the beginning It is recommended to use one on method instead of all.

  • 1.12.4: The last stable version of the 1.x era, only supports IE8, not IE6/7

[Recommended learning:

jQuery video tutorial, web front-end introductory tutorial

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

Statement:
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