[wordpress插件] APH Merge ScriptsAPH合并脚本

wordpress 插件 文章 2020-02-19 17:50 505 0 全屏看文

AI助手支持GPT4.0

评分
88
描述

Combining and minifying javascript dan stylesheet files can improve the speed the website as it will reduce the number of HTTP Request and reduce the size of the downloaded file.

组合并缩小javascript dan样式表文件可以提高网站的速度,因为它将减少HTTP请求的数量并减小下载文件的大小。

This plugin helps you to do all of that.

此插件可帮助您完成所有操作。

It will automatically detect and combine javascript and CSS files loaded by a page, into a single file javascript and CSS.

它将自动检测并将页面加载的javascript和CSS文件合并为一个文件javascript和CSS。

** Features.

**功能。

**

**

    • Easy to use.
    • 易于使用。

    • Merge all CSS and Javascript files into one file – Automatically detect scripts and styles that are required on a page, and then combine them into one file.
    • 将所有CSS和Javascript文件合并为一个文件–自动检测页面上所需的脚本和样式,然后将它们组合为一个文件。

    • There is a tool in the admin bar that makes it easy to add / manage scripts loaded by a page.
    • 管理栏中有一个工具,可以轻松添加/管理页面加载的脚本。

    • Support localized script.
    • 支持本地化脚本。

    • Support remote scripts (Javascript and CSS files hosted on CDN).

    • 支持远程脚本(CDN上托管的Javascript和CSS文件)。

      Built-in parallel download for optimum download time.

    • 内置并行下载,可实现最佳下载时间。

    • Support YUI Compressor.

    • 支持YUI Compressor。

      We don’t use closure compiler as it is not 100% safe.

      我们不使用闭包编译器,因为它不是100%安全的。

      read here

    • 在此处阅读

    • CSS & Script files URL cleaned from query string, leverage browser cache.
    • 从查询字符串中清除CSS和脚本文件URL,利用浏览器缓存。

    • Easy to view and manage merged files.
    • 易于查看和管理合并的文件。

    • There is an option to put merged script to the header or footer
    • 有一个选项可以将合并的脚本放在页眉或页脚

    • Automatically unload CSS and Javascript files that are not found
    • 自动卸载找不到的CSS和Javascript文件

    How To Use

    使用方法

    While loading a page, the plugin will automatically detect the scripts and styles used on the page using WP enqueue system.

    在加载页面时,插件将使用WP enqueue系统自动检测页面上使用的脚本和样式。

    However, in certain circumstances, there are scripts and styles that are not detected automatically, such as akismet-form that usually comes late in the wp_footer

    但是,在某些情况下,有些脚本和样式无法自动检测到,例如akismet形式通常会在wp_footer中出现

    To check that kind of scripts, first, enable “Show Manage Scripts Menu on the Admin Bar” option in the plugin settings page.

    要检查这种脚本,请首先在插件设置页面中启用“在管理栏上显示管理脚本菜单”选项。

    This option will add a menu to the admin-bar menu.

    此选项会将菜单添加到管理栏菜单。

    This menu will appear when you open any page except for the admin page.

    当您打开除管理页面以外的任何页面时,将显示此菜单。

    Now, through that menu, you can choose scripts you want to merge or exclude easily.

    现在,通过该菜单,您可以选择要轻松合并或排除的脚本。

安装步骤

Install & activate the plugin.

安装并激活插件。

Modify some options in the settings page to suits your need.

修改设置页面中的一些选项以适合您的需求。

下载地址
https://downloads.wordpress.org/plugin/aph-merge-scripts.1.3.1.zip
-EOF-

AI助手支持GPT4.0