前言介紹
- 這款 WordPress 外掛「Smart JavaScript Auto Loader」是 2013-09-12 上架。
- 目前有 500 個安裝啟用數。
- 上一次更新是 2024-04-17,距離現在已有 380 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 8 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
footer | header | jquery | javascript | wp_enqueue_script |
內容簡介
智慧 JavaScript 自動加載程式外掛(前身為 JavaScript AutoLoader)允許您載入其他 JavaScript 檔案,而無需更改佈景主題目錄中的檔案
使用方法
只需將其他 JavaScript 檔案放入名為 jsautoload 的目錄中即可進行載入。此目錄可放置在三個不同的位置,按以下順序加載:
子佈景主題相關 (若使用子佈景主題):放置於子佈景主題的目錄中
佈景主題相關:放置於佈景主題的目錄中
主題無關:放置於 wp-content 目錄中
僅會加入副檔名為 .js 的檔案,所有其他檔案都會被忽略。也可以使用子目錄,並且它們也會被掃描。若要忽略整個目錄(包括所有子目錄),請以底線(_)開頭命名此目錄。檔案會按字母順序加入的。目錄永遠會在檔案之後加入。
要在 HTML 檔案的末尾載入一個或多個 JavaScript 檔案,只需將它們放入名為 footer 的目錄中。若要將檔案添加至您的佈景主題頁尾中,則需要在您的 footer.php 中呼叫 wp_footer()。
支援
支援論壇
您喜歡這個外掛嗎?
我花了一些寶貴的空閒時間來開發和維護我的免費 WordPress 外掛,您不必捐款。沒有金錢,沒有啤酒,也沒有咖啡。如果您喜歡這個外掛,請幫我一個忙,給它一個好評價。謝謝。
外掛隱私資訊
此外掛不會設置 cookies
此外掛不會收集或儲存任何資料
此外掛不會向外部伺服器傳送任何資料
Peters 的外掛隱私資訊頁面
ClassicPress
此外掛與 ClassicPress 相容。
Peter 的更多外掛
CSS 自動加載程式 - 不需編寫 CSS 檔案即可載入它
hashtagger - 在 WordPress 中使用標籤
404 頁 - 定義任何 WordPress 頁面作為 404 錯誤頁面
查看全部
原文外掛簡介
The Smart JavaScript Auto Loader Plugin allows you to load additional JavaScript files without the need to change files in the theme directory
Retired Plugin
Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you.
There will be no more updates and I won’t answer any support questions. Thanks for your understanding.
Feel free to fork this plugin.
Usage
To load additional JavaScript files just put them into a directory named jsautoload. This directory can be placed in three different locations that are loaded in the following order:
Child Theme dependent (if using a Child Theme) : in the Child Theme’s directory
Theme dependent : in the Theme’s directory
Theme independent : in the wp-content directory
Only files with extension .js are added, all other files are ignored. Subdirectories can be used and will also be scanned. To ignore a complete directory (including all subdirectories) name the directory beginning with an underscore (_). The files are added in alphabetical order. Directories always are added after files.
To load one ore more JavaScript files at the end of your HTML file just place them into a directory named footer. To add the files to the footer of your theme it is required to call wp_footer() in your footer.php.
Plugin Privacy Information
This plugin does not set cookies
This plugin does not collect or store any data
This plugin does not send any data to external servers
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Smart JavaScript Auto Loader」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Debug Bar List Script & Style Dependencies 》我們都知道在 WordPress 中添加 script 或 style 時,我們應該使用 wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) 和 wp_enqueue_style( $ha...。
WP HeadJS 》這個外掛使用 wp_print_scripts 行動鉤子,而不是替代實現所使用的輸出緩衝和 regex。, 這種方法的缺點是,只有通過 wp_enqueue_script 載入的腳本會受到該插...。
Scripts 》啟用此外掛可讓您定義希望在前端使用哪些 WordPress 內建的 Javascript 檔案,同時也可下載並提供多種前端開發函式庫來自他們在 Github 儲存庫的位置。, 文件...。
Post Head Includes 》這個外掛能夠輕鬆地在每篇文章中加入腳本和樣式表。這是開發人員為其客戶創建自定義頁面的優秀工具,同時也適用於博主將內聯 CSS 和 JS 與其文章內容分離的需...。