jQuery3 slim版本和普通版本區別,如何選擇?

區別概述:jquery

slim即簡化版,比普通版本缺乏Ajax和特效模塊模塊。web

官方發佈地址:http://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/ajax

說明原文
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.
谷歌翻譯
有時你不須要Ajax,或者你更喜歡使用專一於Ajax請求的獨立庫中的一個。 對於全部的Web動畫,一般使用CSS和類操做的組合更爲簡單。 除了包含ajax和特效模塊的常規jQuery版本以外,咱們還發布了一個排除這些模塊的「超薄」版本。 jQuery的大小如今不多是一個負載性能的問題,可是超薄的版本比普通版本小了大約6k個字節(23.6k VS 30k 壓縮後)。bootstrap

大小截圖:性能

 

bootstrap 4,官方手冊中介紹的默認使用的slim版本。動畫

 

來自:吠品整理ui

相關文章
相關標籤/搜索