[WordPress] 外掛分享: Smart JavaScript Auto Loader

前言介紹

  • 這款 WordPress 外掛「Smart JavaScript Auto Loader」是 2013-09-12 上架。
  • 目前有 400 個安裝啟用數。
  • 上一次更新是 2024-04-17,距離現在已有 679 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
  • 有 8 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

petersplugins |

外掛標籤

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 環境。


5.0.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Enable jQuery Migrate Helper 》隨著 WordPress 5.5 的更新,一個名為 jquery-migrate 的遷移工具不再默認啟用。這可能會導致一些主題或外掛在運行舊代碼時缺少功能或出現意外行為。, 此外掛...。
  • WP Featherlight – A Simple jQuery Lightbox 》WP Featherlight 是一個 WordPress 外掛,可為您的WordPress 網站添加一個極簡、高效、響應式 jQuery 燈箱。在其核心,WP Featherlight是一個用於 Featherlig...。
  • Animate It! 》在你的內容中添加炫酷的CSS3動畫效果。, 演示 | 文件 | Class Generator, , 一些主要功能包括:, , 允許用戶在文章、小工具和頁面中應用CSS3動畫。, 50多種進...。
  • Scroll To Top 》這個外掛可以自動啟用一個客製化且靈活的「回到頂部」按鈕到您的 WordPress 網站,讓您的訪客只需點擊一下,即可將網頁滾動回頂端!, 功能包括:, , 無需設置...。
  • jQuery Updater 》此外掛更新jQuery至最新的官方穩定版本,該版本通常不會在WordPress最新的穩定版本中提供。, jQuery Migrate也包含在內,以實現向下相容性。, 不會替換任何檔...。
  • jQuery Colorbox 》查看最新的 WordPress 外掛優惠。, 一个用于 WordPress 的 Colorbox/Lightbox 外掛。, jQuery Colorbox 提供了 11 个不同的主题可供选择。请查看我的网站。, ...。
  • WordPress Countdown Widget 》這是一個 WordPress 倒數計時外掛,可輕鬆地將倒數/計時器添加到博客文章和側邊欄中。支援易於翻譯、自訂顏色和多個實例。只需拖曳即可,無需編程!, , 你可以...。
  • Use Google Libraries 》e's content distribution network (CDN) URLs for the supported libraries., This hook is used to replace the default WordPress registered script sour...。
  • Scroll Back To Top 》Scroll Back to Top 是一個 WordPress 外掛,它會在使用者向下滾動頁面時出現一個按鈕,允許使用者回到頁面頂部。外掛已經預先設定好,啟用後即可使用。該外...。
  • Meteor Slides 》Meteor Slides 讓您輕鬆製作幻燈片並使用 shortcode、小工具或模板標籤發佈它們。 幻燈片支援響應式和流體佈景主題,可適應任何設備並支援觸控。 使用超過20...。
  • Dynamic "To Top" Plugin 》這個 WordPress 外掛可新增一個自動的動態「回到頂部」按鈕,方便使用者輕易捲回長頁面的頂部。, 外掛有一個直覺式控制面板,可以針對每個網站的需求進行風格...。
  • jQuery Manager for WordPress 》管理 WordPress 網站上的 jQuery 和 jQuery Migrate,啟用特定版本的 jQuery 和/或 jQuery Migrate。這是 WordPress 上的終極 jQuery 調試工具。, , 總結:更...。
  • Version Control for jQuery 》jQuery 版本控制是控制網站上使用 jQuery 版本最簡單的方法之一。您可以選擇運行穩定的 WordPress 網站, 或是要在您的網站上驗證與各種 jQuery 版本的相容性...。
  • Pojo Lightbox 》請注意:此外掛僅供Pojo Framework使用者使用。, 一個簡單的外掛,方便地將PhotoSwipe lightbox和prettyPhoto lightbox功能添加到您的WordPress貼文和頁面。,...。
  • jQuery Lightbox For Native Galleries 》已停用通知: 為了推薦 Jetpack 外掛 中輪播模組的使用,此外掛已停止開發。我建議您改用該外掛 - 功能更全面。, 此外掛可以讓 WordPress 相片集使用一個名為C...。

文章
Filter
Apply Filters
Mastodon