[wordpress插件] Do Not Load jQuery不加载jQuery

wordpress 插件 文章 2020-04-20 14:00 456 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Some WordPress plugins will load jQuery into your header through the wp_head function, but at times it is not wanted.

某些WordPress插件会通过wp_head函数将jQuery加载到您的标头中,但有时是不需要的。

For example, you may load jQuery through Google, in which case, you will not want any of your plugins to load it.

例如,您可以通过Google加载jQuery,在这种情况下,您将不希望任何插件加载它。

You can use this plugin rather than commenting out the code for every plugin or putting a function into each theme.

您可以使用此插件,而不必注释每个插件的代码或在每个主题中添加功能。

安装步骤

    1. Unzip archive
    2. 解压缩存档

    3. Upload the ‘do-not-load-jquery’ folder to the ‘/wp-content/plugins/’ directory
    4. 将“ do-not-load-jquery”文件夹上传到“ / wp-content / plugins /”目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/do-not-load-jquery.zip
-EOF-

AI助手支持GPT4.0