內容簡介
連接 (Concatenation) 將多個 JavaScript 檔案合併成一個。這意味著瀏覽器只需下載一個檔案,而不是 5、10 或 20 個。
縮小 (Minification) 從檔案中刪除所有不必要的空間。這意味著您只下載實際上需要的內容。
為了加快網站速度,大多數開發者會建議您兩者都做。但是,手動設置這些步驟可能很耗時且令人沮喪,特別是在您的網站安裝新的外掛時。
這個外掛程式會自動幫您合併和縮小檔案,而不是強迫您手動執行。不需要進行任何設置,只需啟用即可。
這是一個 beta 版本的外掛,不保證穩定。請將任何錯誤報告到 https://github.com/ericmann/MiniPress/issues。
已知問題
0.4
目前沒有問題。
0.3
如果兩個腳本聲明具有相同的相依性,該相依性將在串聯的檔案中重複出現。
0.2
如果兩個腳本聲明具有相同的相依性,該相依性將在串聯的檔案中重複出現。
0.1
腳本相依性不會自動添加到串聯的腳本中,必須顯式併入。
外掛標籤
開發者團隊
原文外掛簡介
Concatenation merges multiple JavaScript files into one. This means the browser downloads 1 file instead of 5, 10, or 20.
Minification removes all unnecessary space from a file. This means you only download the content you actually need.
To speed up your site, most developers will recommend you do both. But it can be time-consuming and frustrating to set this up – particularly as you install new plugins on your site.
Rather than forcing you to merge and minify files manually, this plugin will do it for you automatically. No configuration is needed, just activate and go.
This is very much a beta version of the plugin and is not expected to be stable. Please report any and all bugs to https://github.com/ericmann/MiniPress/issues.
Known Issues
0.4
None at this time.
0.3
If two scripts declare the same dependencies, that dependency will be included twice in the concatenated file.
0.2
If two scripts declare the same dependencies, that dependency will be included twice in the concatenated file.
0.1
Script dependencies are not automatically added to the concatenated script – they must be explicitly enqueued.
