[WordPress] 外掛分享: Inline JavaScript in Head

前言介紹

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

外掛協作開發者

palasthotel | greatestview |

外掛標籤

head | inline | enqueue | scripts | javascript |

內容簡介

注意:這個外掛現在已經被棄用!它的後繼外掛是Embed JavaScript File Content。新的外掛程序是從頭開始重新構建的,更加穩定可靠:它尊重腳本的順序和位置,而且通過wp_add_inline_script或wp_localize_script添加的額外腳本不會丟失。請試用一下它!

在某些情況下,即使JavaScript文件被放在模板的部分的早期位置,您也不能等待其加載。如果將JavaScript代碼直接放在

CAUTION: This plugin is now deprecated! The successor plugin is Embed JavaScript File Content. The new plugin is rebuild from scratch and more rock solid: It respects order and position of scripts and extra scripts added via wp_add_inline_script or wp_localize_script don’t get lost. Give it a try!
In some cases you cannot wait for a JavaScript file to load, even if it is placed early in the

section of your template. You can benefit from better performance, if you place the JavaScript code directly inside a

文章
Filter
Apply Filters
Mastodon