jquery slim refers to the simplified slim version of jquery. It lacks Ajax and special effects modules than the ordinary standard version, so the file is smaller than the standard version: the compressed size of the slim version is 23.6kb, while the size of the standard version It is 30kb.
The operating environment of this tutorial: windows7 system, jquery3.3.1 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.
Overview of differences:
slim is a simplified version, which 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.
Official release address: http://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/
web front-end introductory tutorialOriginal description
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. 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).
[Recommended learning:jQuery video tutorial
,
The above is the detailed content of What is jquery slim. For more information, please follow other related articles on the PHP Chinese website!