Title: Remove jQuery from Theme
Author: Marc Tönsing
Published: <strong>2021 年 3 月 9 日</strong>
Last modified: 2021 年 3 月 9 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/remove-jquery.svg)

# Remove jQuery from Theme

 由 [Marc Tönsing](https://profiles.wordpress.org/marcdk/) 開發

[下載](https://downloads.wordpress.org/plugin/remove-jquery.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/remove-jquery/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/remove-jquery/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/remove-jquery/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/remove-jquery/#developers)

 [技術支援](https://wordpress.org/support/plugin/remove-jquery/)

## 外掛說明

Removes jQuery from your frontend theme if no administrator is logged-in. jQuery
will continue to work in you backend and when the admin toolbar is visible. Plugins
which depend on jQuery will not be loaded either.

This plugin does nothing more but this:

    ```
    function init_without_jquery() {
        if (!is_admin() AND !is_admin_bar_showing()) {
            wp_deregister_script('jquery');
            wp_register_script('jquery', false);
        }
    }

    add_action('init', 'init_without_jquery');
    ```

## 安裝方式

Remove jQuery can be found and installed via the Plugin menu within WordPress administration(
Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and 
installed manually…

## 常見問題集

### Why did you do this?

Because I needed a simple plugin to do this job and decided to do it on his own.
WordPress frontends are is much faster without jQuery.

### jQuery is still loading! The plugin does not work!

You are most likely logged-in as administrator and the admin topbar is visible. 
Many plugins rely on jQuery for backend features. So I kept it enabled for the admin
topbar, too.

## 使用者評論

![](https://secure.gravatar.com/avatar/646a9b3e06d09e33f6820c51be9c9459e1df4e57e9f76e0c2e8e95b6ff861ef9?
s=60&d=retro&r=g)

### 󠀁[Does what it promises. Perfectly!!!](https://wordpress.org/support/topic/does-what-it-promises-perfectly/)󠁿

 [acelerawp](https://profiles.wordpress.org/acelerawp/) 2021 年 4 月 12 日

Thank You so much to the developer for this useful plugin. All the Best, Miguel

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/remove-jquery/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Remove jQuery from Theme〉的開發相關工作。

參與者

 *   [ Marc Tönsing ](https://profiles.wordpress.org/marcdk/)

[將〈Remove jQuery from Theme〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/remove-jquery)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/remove-jquery/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/remove-jquery/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/remove-jquery/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/remove-jquery/)。

## 變更記錄

#### 1.0

 * Initial version.

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **5 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.6.17**
 *  語言
 * [English (US)](https://wordpress.org/plugins/remove-jquery/)
 * 標籤:
 * [jquery](https://tw.wordpress.org/plugins/tags/jquery/)
 *  [進階檢視](https://tw.wordpress.org/plugins/remove-jquery/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/remove-jquery/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/remove-jquery/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/remove-jquery/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/remove-jquery/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/remove-jquery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/remove-jquery/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/remove-jquery/reviews/)

## 參與者

 *   [ Marc Tönsing ](https://profiles.wordpress.org/marcdk/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/remove-jquery/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://marc.tv/out/donate)