[WordPress] 外掛分享: JavaScript to Footer

前言介紹

  • 這款 WordPress 外掛「JavaScript to Footer」是 2008-12-01 上架。
  • 目前有 700 個安裝啟用數。
  • 上一次更新是 2014-12-22,距離現在已有 3786 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.3 以上版本才可以安裝。
  • 有 16 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

freediver |

外掛標籤

footer | javascript | optimization |

內容簡介

雅虎卓越表現團隊建議將腳本置於頁面底部,因為瀏覽器下載元件的方式。

“腳本引起的問題在於它們阻塞並行下載。HTTP/1.1 規範建議瀏覽器每個主機名稱最多下載兩個元件。如果您從多個主機名稱提供圖片,您可以讓超過兩個下載並行發生。但是瀏覽器下載腳本時,即使在不同的主機名稱上,也不會開始任何其他下載。

在某些情況下,將腳本移到底部並不容易。例如,如果腳本使用 document.write 插入頁面的某個部分,則無法將其向下移動。可能還存在範圍問題。在許多情況下,有解決這些情況的方法。”

WordPress 的預設行為是在頁面中加載 JavaScript。

如果這些外掛正確聲明了 JavaScript,則此插件將移動所有 JavaScript 代碼到頁腳。

由Vladimir Prelovac製作的外掛。尋找WordPress 服務嗎?

許可證

此文件是Footer JavaScript的一部分。

Footer JavaScript 是自由軟體,您可以遵循GNU通用公共許可證的條款進行重新分發和/或修改,無論是許可證的第3版還是(根據您的選擇)任何之後版本。

Footer JavaScript 希望它是有用的,但沒有任何保證;甚至沒有適銷性或特定用途的隱含保證。有關更多詳細信息,請參見GNU通用公共許可證。

您應該已經收到了隨Footer JavaScript一起附帶的GNU通用公共許可證的副本。如果沒有,請參閱http://www.gnu.org/licenses/。

原文外掛簡介

The Yahoo! Exceptional Performance team recommends placing scripts at the bottom of your page because of the way browsers download components.
“The problem caused by scripts is that they block parallel downloads. The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel. While a script is downloading, however, the browser won’t start any other downloads, even on different hostnames.
In some situations it’s not easy to move scripts to the bottom. If, for example, the script uses document.write to insert part of the page’s content, it can’t be moved lower in the page. There might also be scoping issues. In many cases, there are ways to workaround these situations.”
WordPress default behavior is to load javascript in the page.
This plugin will move all javascript code to the footer if the plugins have declared javascript properly.
Plugin by Vladimir Prelovac. Looking for WordPress Services?
License
This file is part of Footer JavaScript.
Footer JavaScript is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Footer JavaScript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Footer JavaScript. If not, see http://www.gnu.org/licenses/.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「JavaScript to Footer」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 0.2 | 0.3 | 0.4 | 0.3.1 | 0.4.1 |

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

  • AMP 》「Page Experience」(PX)是一組排名訊號,包括「核心網頁素質」(Core Web Vitals,CWV),用來測量使用者與網頁互動的使用體驗。AMP 是一個強大的工具,能...。
  • Performance Lab 》Performance Lab 外掛是一個專注於提升網站效能的模組集合,其中大部分模組最終都會合併到 WordPress 核心中。這個外掛允許使用者個別啟用和測試模組,以便在...。
  • Optimization Detective 》,

    總結:這個外掛會收集使用者實際瀏覽時的數據,以便跨不同設備形式(如桌面、平板和手機)應用載入優化,這是使用WordPress目前伺...。

  • Image Prioritizer 》### 總結:, 這個外掛通過優化圖片的加載,特別是 LCP(最大內容繪製時間)元素,包括 img 元素和帶有 CSS 背景圖像的元素。它還通過捕獲每個斷點的 LCP 元素...。
  • WP Meteor Website Speed Optimization Addon 》 , WP Meteor 是一種全新的優化網頁速度的方式。即使在現有的優化基礎之上,例如:, , Autoptimize, WP Rocket, WP Total Cache, WP Super Cache, , WP Meteo...。
  • Flying Pages: Preload Pages for Faster Navigation & Improved User Experience 》Flying Pages 是一款 WordPress 外掛,可以在使用者點擊頁面前預先加載頁面,讓頁面瞬間載入。, , 它的運作方式是透過注入一小段(1KB gzipped)JavaScript ...。
  • Delete Duplicate Posts 》這個外掛可以搜尋並移除重複的文章及它們的相關資料。, 在您自己的測試網站上試試看:請點擊此連結 => https://tastewp.com/template/t6-CTt-T3P4?ni=true...。
  • Speed Booster Pack ⚡ PageSpeed Optimization Suite 》「Speed Booster Pack」是一款WordPress外掛,它可以讓你的網站速度更快,讓你在Google PageSpeed、GTmetrix、Pingdom、WebPageTest等主要速度測試服務上得到...。
  • PhastPress 》PhastPress 使用先進技術在加載時顯著改善頁面、腳本、樣式表和圖像。它設計成符合 Google PageSpeed Insights 和 GTmetrix 建議,可以顯著提高您網站的得分...。
  • GTmetrix for WordPress 》GTmetrix 為 WordPress 設計了 GTmetrix for WordPress 擴充套件,這款擴充套件會主動追蹤您的 WP 安裝狀況,並在您的網站未達到特定標準時發送警報。, 透過 ...。
  • Machete 》Machete是一個簡單的工具套件,可以盡可能節省資源來解決常見的WordPress煩惱。Machete並不適用於每一種使用情況,但若您使用Machete,會需要較少的外掛程式...。
  • WordPress Hosting Benchmark tool 》這個外掛可以幫助你測試你的主機伺服器。透過執行統一測試,你可以觀察和比較不同的伺服器或主機平台。它不需要任何特殊的額外軟體或工具,因為所有的測試都...。
  • Specific Content For Mobile – Customize the mobile version without redirections 》「Specific Content For Mobile」外掛可以讓你針對手機版頁面和文章創建特定的內容。若某些頁面需要有不同的內容,這款外掛就非常適合你使用。雖然擁有一個完...。
  • WordPress WPO Tweaks & Optimizations 》預設情況下,WordPress 載入了許多不必要且經常拖慢您的安裝,浪費主機資源的功能、服務和腳本。多年來,我一直嘗試進行一些微調,以節省主機資源,提高 Word...。
  • Helper Lite for PageSpeed 》使用解碼屬性 “async” 和 “loading=”lazy”,加速您的網站中的