{"id":6022,"date":"2021-09-21T18:24:32","date_gmt":"2021-09-21T09:24:32","guid":{"rendered":"https:\/\/www.wexal.jp\/document-3-0-0\/pst-config-file\/pst-lua-directive\/"},"modified":"2022-12-28T20:14:41","modified_gmt":"2022-12-28T11:14:41","slug":"pst-lua-directive","status":"publish","type":"page","link":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/","title":{"rendered":"\"lua\" Directive (3.1.5)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"\u5171\u901a\u66f8\u5f0f\"><span class=\"ez-toc-section\" id=\"Basic_Coding\"><\/span>Basic Coding<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following are the \"lua\" directive coding rules.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cmd\"><span class=\"ez-toc-section\" id=\"cmd\"><\/span>cmd<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the name of the \"lua\" directive to be executed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>directive name<\/strong><\/strong><\/td><td>Specify the name of the directive.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies options for the \"lua\" directive to be executed. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-2\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping) or Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-2\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Options are different depending on the selected \"lua\" directive. Refer to each \"lua\" directive for more information.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-2\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: lazy load\n    args:\n    - element:img\n      skip: 5<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"apply\"><span class=\"ez-toc-section\" id=\"apply\"><\/span>apply<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the path or the conditions to be applied to the \"lua\" directive.<br>If more than one is specified, the OR condition will be used.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-3\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"apply-path\"><span class=\"ez-toc-section\" id=\"apply_%3E_path\"><\/span>apply &gt; path<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the path to be applied to the \"lua\" directive.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-4\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-3\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>path<\/strong><\/td><td>Specify the path to be applied to the \"lua\" directive by regular expressions.<br>The \"worker\" directive will be applied by default to all resources except for paths specified in \"global_exclude\" in the PST configuration file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-3\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url\n    apply:\n      path: \n      - ^\/archives\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"apply-if\"><span class=\"ez-toc-section\" id=\"apply_%3E_if\"><\/span>apply &gt; if<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the conditions to be applied to the \"lua\" directive.<br>If this is not set, this directive will be applied by default to all resources except for paths specified in \"global_exclude\" in the PST configuration file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-5\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-4\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>is_kusanagi_pc<\/strong><\/td><td>Specify access from a PC browser as a condition.<\/td><\/tr><tr><td><strong>is_kusanagi_mobile<\/strong><\/td><td>Specify access from a mobile browser as a condition.<\/td><\/tr><tr><td><strong>is_kusanagi_tablet<\/strong><\/td><td>Specify access from a tablet browser as a condition.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-4\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url\n    apply:\n      if:\n      - is_kusanagi_pc<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"exclude\"><span class=\"ez-toc-section\" id=\"exclude\"><\/span>exclude<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the path or conditions to be excluded from application to the \"lua\" directive.<br>If more than one is specified, the OR condition will be used.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-6\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"exclude-path\"><span class=\"ez-toc-section\" id=\"exclude_%3E_path\"><\/span>exclude &gt; path<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the path to be excluded from application to the \"lua\" directive.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-7\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-5\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>path<\/strong><\/td><td>Specify the path to be excluded from application to the \"lua\" directive.<br>The \"worker\" directive will be applied by default to all resources except for paths specified in \"global_exclude\" in the PST configuration file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-5\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url\n&nbsp;   exclude:\n      path:\n&nbsp;     - \/wp-content\/plugins<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"exclude-if\"><span class=\"ez-toc-section\" id=\"exclude_%3E_if\"><\/span>exclude &gt; if<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the conditions to be excluded from application to the \"lua\" directive.<br>If this is not set, this directive will be applied by default to all resources except for paths specified in \"global_exclude\" in the PST configuration file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-8\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-6\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>is_kusanagi_pc<\/strong><\/td><td>Specify access from a PC browser as an exclusion condition.<\/td><\/tr><tr><td><strong>is_kusanagi_mobile<\/strong><\/td><td>Specify access from a mobile browser as an exclusion condition.<\/td><\/tr><tr><td><strong>is_kusanagi_tablet<\/strong><\/td><td>Specify access from a tablet browser as an exclusion condition.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-6\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url\n    exclude:\n      if:\n      - is_kusanagi_pc<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"lua-header-filter-\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\"><span class=\"ez-toc-section\" id=\"lua_%3E_header_filter_directive\"><\/span>lua &gt; header_filter directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add\"><span class=\"ez-toc-section\" id=\"add\"><\/span>add<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds HTTP header elements to be output in HTTP response headers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-2\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-9\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-7\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>key: value<\/strong><\/td><td>Specify the HTTP header key and value as a \":\" separated string. You can specify multiple HTTP header keys.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-7\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: add\n    args:\n    - 'Page-Speed-Technology: on'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove\"><span class=\"ez-toc-section\" id=\"remove\"><\/span>remove<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HTTP header keys that match exactly in value will be removed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-3\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-10\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-8\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>key:  value<\/strong><\/td><td>Specify the HTTP header key and value as a \":\" separated string. The HTTP header keys with an exact match in value will be removed. If the value is omitted, the specified HTTP header key will be removed regardless of value. You can specify multiple HTTP header keys.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-8\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: remove\n    args:\n    - 'link: ; rel=\"https:\/\/api.w.org\/\"'\n    - 'x-pingback'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"replace\"><span class=\"ez-toc-section\" id=\"replace\"><\/span>replace<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Replaces HTTP header elements in HTTP response headers.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-4\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-11\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-search\"><span class=\"ez-toc-section\" id=\"args_%3E_search\"><\/span>args &gt; search<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-12\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-9\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>key: value<\/strong><\/td><td>Specify the HTTP header key and value as a \":\" separated string. Specify the HTTP header key to be searched. Please enclose the value in single quotes ('). You can specify multiple HTTP header keys.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-replacement\"><span class=\"ez-toc-section\" id=\"args_%3E_replacement\"><\/span>args &gt; replacement<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-13\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-10\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>key: value<\/strong><\/td><td>Specify the HTTP header key and value as a \":\" separated string. Specify the HTTP header key to be replaced. Please enclose the value in single quotes ('). You can specify multiple HTTP header keys.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-9\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: replace\n    args:\n    - search: 'X-MyHeader: original'\n      replacement: 'X-MyHeader: replaced'\n    - search: 'X-old-header: original'\n      replacement: 'X-new-header: replaced'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"server-push\"><span class=\"ez-toc-section\" id=\"server_push\"><\/span>server push<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sends the specified resource via HTTP2 Push to reduce the time required to display content. Normally, the resources required to display content are not known until the HTTP response body is obtained and its contents are parsed. By specifying a resource for \"server push\", you can receive the resource at the same time as the HTTP response body.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-5\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-14\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-15\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-11\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-media\"><span class=\"ez-toc-section\" id=\"args_%3E_media\"><\/span>args &gt; media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-16\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-12\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>media queries<\/strong><\/strong><\/td><td>Specify the media query for the \"media\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-10\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: server push\n    args:\n    - href: \/wp-content\/mu-plugins\/pst\/font\/genericons-regular-webfont.ttf<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-link\"><span class=\"ez-toc-section\" id=\"add_link\"><\/span>add link<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds HTTP header elements to be output in the \"Link\" field of the HTTP response header.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-6\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-17\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-rel\"><span class=\"ez-toc-section\" id=\"args_%3E_rel\"><\/span>args &gt; rel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-18\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-13\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>link type<\/strong><\/strong><\/td><td>Specify the link type for the \"rel\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href-2\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-19\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-14\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-as\"><span class=\"ez-toc-section\" id=\"args_%3E_as\"><\/span>args &gt; as<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-20\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-15\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource type<\/strong><\/strong><\/td><td>Specify the resource type for the \"as\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-type\"><span class=\"ez-toc-section\" id=\"args_%3E_type\"><\/span>args &gt; type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-21\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-16\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>content type<\/strong><\/td><td>Specify the content type for the \"type\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-media\"><span class=\"ez-toc-section\" id=\"args_%3E_media-2\"><\/span>args &gt; media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-22\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-17\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>media queries<\/strong><\/td><td>Specify the media query for the \"media\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-crossorigin\"><span class=\"ez-toc-section\" id=\"args_%3E_crossorigin\"><\/span>args &gt; crossorigin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-23\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-18\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"> Set Enable\/Disable CORS (Cross-Origin Resource Sharing). The default setting is disabled.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Enable CORS.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Disable CORS.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-11\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: add link\n    args:\n    - rel: preload\n      href: \/wp-content\/themes\/twentytwenty\/assets\/fonts\/inter\/Inter-italic-var.woff2\n      as: font\n      type: font\/woff2\n      crossorigin: true<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"server-push-external-css\"><span class=\"ez-toc-section\" id=\"server_push_external_css\"><\/span>server push external css<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To be used in combination with \"engagement delay\". In \"engagement delay\", execute \"HTTP\/2 server push\" for style sheets set with \"type: css\/cssx\" and \"method: server push\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-7\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-12\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: server push external css<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"set-cookie-for-cdn\"><span class=\"ez-toc-section\" id=\"set_cookie_for_cdn\"><\/span>set cookie for cdn<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When content is delivered via a CDN, sets a cookie so that optimized content will be delivered even under the CDN environment. Specify this setting when executing PST optimization in combination with a CDN environment.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-8\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-24\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-domain\"><span class=\"ez-toc-section\" id=\"args_%3E_domain\"><\/span>args &gt; domain<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-25\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-19\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the original domain.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-external-url\"><span class=\"ez-toc-section\" id=\"args_%3E_external_url\"><\/span>args &gt; external_url<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-26\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-20\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the JavaScript URL that sets the cookie for the original domain.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-ext\"><span class=\"ez-toc-section\" id=\"args_%3E_ext\"><\/span>args &gt; ext<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-27\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-21\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>cookie<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Specify the value to be set for the cookie.<br>This cannot be omitted.<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-13\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: set cookie for cdn\n    args:\n      domain: wexal.jp\n      external_url: https:\/\/www.prime-strategy.co.jp\/test.js?test=test<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-remove-header\"><span class=\"ez-toc-section\" id=\"wp_remove_header\"><\/span>wp remove header<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restricts the handles that WordPress outputs in the head tags, thereby reducing the amount of content the browser needs to load and improving display speed. By default, this removes \"trackback permissions confirmation\" and the following handles.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong> <strong><strong>Handle Name<\/strong><\/strong><\/strong><\/td><\/tr><tr><td>pings_open<\/td><\/tr><tr><td>rest_output_link_header<\/td><\/tr><tr><td>wp_shortlink_header<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-9\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-28\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-func-to-remove\"><span class=\"ez-toc-section\" id=\"args_%3E_func_to_remove\"><\/span>args &gt; func_to_remove<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-29\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-22\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>handle<\/strong><\/td><td>Specify additional handles to be removed under the \"template_redirect\" hook.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-header\"><span class=\"ez-toc-section\" id=\"args_%3E_header\"><\/span>args &gt; header<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-30\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String \/ Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-23\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>header elements<\/strong><\/td><td>Specify the HTTP header elements for each handle that you set in \"func_to_remove\". The default value is the HTTP header elements of each handle. By setting false, the HTTP header elements will not be removed.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-14\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  header_filter:\n  - cmd: wp remove header\n    args\n    - func_to_remove: pings_open\n      header: x-pingback<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"lua-body-filter-\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\"><span class=\"ez-toc-section\" id=\"lua_%3E_body_filter_directive\"><\/span>lua &gt; body_filter directive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"set-cookie-for-cdn\"><span class=\"ez-toc-section\" id=\"set_cookie_for_cdn-2\"><\/span>set cookie for cdn<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When content is delivered via a CDN, sets a cookie so that optimized content will be delivered even under the CDN environment. Specify this setting when executing PST optimization in combination with a CDN environment.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-10\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-31\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-external-url\"><span class=\"ez-toc-section\" id=\"args_%3E_external_url-2\"><\/span>args &gt; external_url<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-32\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-24\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the JavaScript URL that sets the cookie for the original domain.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-ext\"><span class=\"ez-toc-section\" id=\"args_%3E_ext-2\"><\/span>args &gt; ext<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-33\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-25\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><span class=\"has-inline-color has-black-color\">cookie<\/span><\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Specify the value to be set for the cookie.<br>This cannot be omitted.<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-15\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: set cookie for cdn\n    args:\n      external_url: https:\/\/www.prime-strategy.co.jp\/test.js?test=test<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"preload\"><span class=\"ez-toc-section\" id=\"preload\"><\/span>preload<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds a \"link\" element set with \"preload\" to the HTML &amp;lt;head&amp;gt; section.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-11\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-34\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href-3\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-35\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-26\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-media\"><span class=\"ez-toc-section\" id=\"args_%3E_media-3\"><\/span>args &gt; media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-36\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-27\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>media queries<\/strong><\/td><td>Specify the media query for the \"media\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-16\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: preload\n    args:\n    - href: \/wp-content\/themes\/twentytwenty\/style.css\n      media: all<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-js\"><span class=\"ez-toc-section\" id=\"remove_js\"><\/span>remove js<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Removes the specified external script tags, thereby reducing the amount of content the browser needs to load and improving display speed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-12\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-37\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_needle\"><\/span>args &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-38\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-28\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>needle (search string)<\/strong><\/td><td>Specify a needle (search string) for the script you want to remove. It can also be specified by regular expressions.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-17\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: remove js\n    args:\n    - needle: wp-embed\n    - needle: vk-all-in-one-expansion-unit\/assets\/js\/all.min.js<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-inline-js\"><span class=\"ez-toc-section\" id=\"remove_inline_js\"><\/span>remove inline js<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Removes the inline script tags, thereby reducing the amount of content the browser needs to load and improving display speed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-13\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-39\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_needle-2\"><\/span>args &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-40\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-29\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>needle (search string)<\/strong><\/strong><\/td><td>Specify a needle (search string) for the inline script you want to remove. It can also be specified by regular expressions.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-18\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: remove inline js\n    args:\n    - needle: function heateorSssLoadEvent(e)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-link\"><span class=\"ez-toc-section\" id=\"remove_link\"><\/span>remove link<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Removes the link tag primarily used to invoke external style sheets, thereby reducing the amount of content the browser needs to load and improving display speed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-14\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-41\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_needle-3\"><\/span>args &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-42\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-30\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>needle (search string)<\/strong><\/td><td>Specify a needle (search string) for the link tag you want to remove. It can also be specified by regular expressions.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-19\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: remove inline css\n    args\n    - needle: .heateor_sss_horizontal_sharing <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-inline-css\"><span class=\"ez-toc-section\" id=\"remove_inline_css\"><\/span>remove inline css<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Removes the specified inline style sheet tags, thereby reducing the amount of content the browser needs to load and improving display speed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-15\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-43\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_needle-4\"><\/span>args &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-44\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-31\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>needle (search string)<\/strong><\/strong><\/td><td>Specify a needle (search string) for the inline style sheet you want to remove. It can also be specified by regular expressions.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-20\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: remove inline css\n    args\n    - needle: .heateor_sss_horizontal_sharing <\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remove-meta\"><span class=\"ez-toc-section\" id=\"remove_meta\"><\/span>remove meta<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Removes the specified meta tags, thereby reducing the amount of content the browser needs to load and improving display speed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-16\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-45\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_needle-5\"><\/span>args &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-46\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-32\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>needle (search string)<\/strong><\/strong><\/td><td>Specify a needle (search string) for the meta tag you want to remove. It can also be specified by regular expressions.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-21\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: remove meta\n    args:\n    - needle: generator<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"insert-comment\"><span class=\"ez-toc-section\" id=\"insert_comment\"><\/span>insert comment<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds comments to HTML content.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-17\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-47\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-comment\"><span class=\"ez-toc-section\" id=\"args_%3E_comment\"><\/span>args &gt; comment<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-48\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-33\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>comment<\/strong><\/td><td>Specify comments. Please enclose the comments in single quotes (').<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-49\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-34\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong><\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag, or \"&lt;\/body&gt;\" to place it before the \"&lt;\/body&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-22\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: insert script\n    args:\n    - comment: '&lt;!-- comment --&gt;'\n      pos: &lt;\/body&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"insert-script\"><span class=\"ez-toc-section\" id=\"insert_script\"><\/span>insert script<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds inline scripts. After removing handles by using the \"remove js\" directive etc., you can insert the minimum required scripts without editing the template.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-18\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-50\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-script\"><span class=\"ez-toc-section\" id=\"args_%3E_script\"><\/span>args &gt; script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-51\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-35\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>scripts<\/strong><\/strong><\/td><td>Specify the additional inline script. Please enclose the script in single quotes (').<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-2\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-52\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-36\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong><\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag, or \"&lt;\/body&gt;\" to place it before the \"&lt;\/body&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-23\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: insert script\n    args:\n    - script: '&lt;script type=\"text\/javascript\"&gt;var vkExOpt = {\"ajax_url\":\"https:\\\/\\\/www.wexal.jp\\\/wp-admin\\\/admin-ajax.php\"};&lt;\/script&gt;'\n      pos: &lt;\/body&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-css\"><span class=\"ez-toc-section\" id=\"add_css\"><\/span>add css<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds style sheets.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-19\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-53\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-handle\"><span class=\"ez-toc-section\" id=\"args_%3E_handle\"><\/span>args &gt; handle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-54\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-37\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>handle name<\/strong><\/strong><\/td><td>Specify the additional handle name of the style sheet. Use for the \"id\" property of the \"link\" tag. By default, no handle name is specified.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-src\"><span class=\"ez-toc-section\" id=\"args_%3E_src\"><\/span>args &gt; src<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-55\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-38\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>style sheet path<\/strong><\/strong><\/td><td>Specify the path to the style sheet file.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-media\"><span class=\"ez-toc-section\" id=\"args_%3E_media-4\"><\/span>args &gt; media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-56\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-39\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>media queries<\/strong><\/strong><\/td><td>Specify the media for the style sheet definition. The default media is \"all\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-inline\"><span class=\"ez-toc-section\" id=\"args_%3E_inline\"><\/span>args &gt; inline<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-57\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-40\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether the added style sheet is inserted as an inline style. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Insert the added style sheet as an inline style.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>The style sheet to be inserted is not an inline style.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-ver\"><span class=\"ez-toc-section\" id=\"args_%3E_ver\"><\/span>args &gt; ver<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-58\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-41\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether to append the version number to the end of the query string. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Append the version number to the end of the query string.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Do not append the version number to the end of the query string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-3\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-59\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-42\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong> <\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;head&gt;\" to place it after the \"&lt;head&gt;\" tag, or \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-24\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: add css\n    args:\n    - handle: button\n      src: \/_wp\/so-widgets-bundle\/widgets\/button\/css\/style.css\n      pos: &lt;\/head&gt;\n      inline: true<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-js\"><span class=\"ez-toc-section\" id=\"add_js\"><\/span>add js<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds JavaScripts.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-20\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-60\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-sync\"><span class=\"ez-toc-section\" id=\"args_%3E_sync\"><\/span>args &gt; sync<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-61\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-43\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>loading method<\/strong><\/td><td>Specify how to load the added script. Specify \"async\", if you want to load the added script asynchronously and run it asynchronously. Specify \"defer\", if you want to load the added script asynchronously and run it synchronously after HTML parsing is complete. If other options are specified or omitted, the script will be loaded synchronously and run synchronously.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-src\"><span class=\"ez-toc-section\" id=\"args_%3E_src-2\"><\/span>args &gt; src<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-62\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-44\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>script path<\/strong><\/strong><\/td><td>Specify the path of the added script.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-inline\"><span class=\"ez-toc-section\" id=\"args_%3E_inline-2\"><\/span>args &gt; inline<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-63\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-45\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether the added script is inserted as an inline style. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Insert the added script as an inline style.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>The inline script to be inserted is not an inline style. <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-ver\"><span class=\"ez-toc-section\" id=\"args_%3E_ver-2\"><\/span>args &gt; ver<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-64\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-46\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether to append the version number to the end of the query string. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Append the version number to the end of the query string.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Do not append the version number to the end of the query string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-4\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-65\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-47\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong> <\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;head&gt;\" to place it after the \"&lt;head&gt;\" tag, or \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-25\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: add js\n    args:\n    - sync: defer\n      src: \/wp-content\/mu-plugins\/pst\/js\/example.js\n      pos: &lt;\/head&gt;\n      inline: true<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"defer-external-js\"><span class=\"ez-toc-section\" id=\"defer_external_js\"><\/span>defer external js<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By deferring the execution of external scripts until after the completion of HTML parsing of the HTTP response body, the display speed will be shortened. Content will be displayed after HTML parsing is complete (DOMContentLoaded) and loading of style sheets, images, etc. is complete (load). Normally, scripts are executed as soon as they are found by HTML parsing, and HTML parsing will not restart until script execution is complete. This directive allows HTML parsing to be completed first, so that external scripts can be executed in parallel with the loading of style sheets and images.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-21\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-66\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-apply-script\"><span class=\"ez-toc-section\" id=\"args_%3E_apply_script\"><\/span>args &gt; apply_script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-67\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-48\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>script path<\/strong><\/strong><\/td><td>Specify the path of the applied script. It can also be specified by regular expressions. The default path is \".\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-exclude-script\"><span class=\"ez-toc-section\" id=\"args_%3E_exclude_script\"><\/span>args &gt; exclude_script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-68\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-49\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>script path<\/strong><\/strong><\/td><td>Specify the path of the script to be excluded. It can also be specified by regular expressions. The default value is false.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-26\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: defer external js\n    args:\n      apply_script: js<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"replace\"><span class=\"ez-toc-section\" id=\"replace-2\"><\/span>replace<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Replaces strings in the response body sent from the web server to the client.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-22\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-69\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-search\"><span class=\"ez-toc-section\" id=\"args_%3E_search-2\"><\/span>args &gt; search<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-70\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-50\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>source string<\/strong><\/strong><\/td><td>Specify the source string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-replacement\"><span class=\"ez-toc-section\" id=\"args_%3E_replacement-2\"><\/span>args &gt; replacement<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-71\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-51\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>replacement string<\/strong><\/strong><\/td><td>Specify the replacement string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-limit\"><span class=\"ez-toc-section\" id=\"args_%3E_limit\"><\/span>args &gt; limit<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-72\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-52\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>number of replacements<\/strong><\/strong><\/td><td>Specify the number of replacements. If omitted, all matched source strings will be replaced with the replacement string. The default is -1, which will replace all matching strings.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-27\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: replace\n    args:\n    - search: WordPress\n      replacement: PressWord\n      limit: 1\n    - search: Old Company Name\n      replacement: New Company Name<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"replace-anything\"><span class=\"ez-toc-section\" id=\"replace_anything\"><\/span>replace anything<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Replaces strings using regular expressions in the response body sent from the web server to the client. In the replacement string, you can include back references ($1, $2, etc.).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-23\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-73\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pattern\"><span class=\"ez-toc-section\" id=\"args_%3E_pattern\"><\/span>args &gt; pattern<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-74\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-53\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>regular expressions<\/strong><\/strong><\/td><td>Specify the source string by regular expressions.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-replacement\"><span class=\"ez-toc-section\" id=\"args_%3E_replacement-3\"><\/span>args &gt; replacement<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-75\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-54\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>replacement string<\/strong><\/strong><\/td><td>Specify the replacement string. You can include back references ($1, $2, etc.).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-limit\"><span class=\"ez-toc-section\" id=\"args_%3E_limit-2\"><\/span>args &gt; limit<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-76\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-55\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>number of replacements<\/strong><\/strong><\/td><td>Specify the number of replacements. If omitted, all matched source strings will be replaced with the replacement string. The default is -1, which will replace all matching strings.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-modifier\"><span class=\"ez-toc-section\" id=\"args_%3E_modifier\"><\/span>args &gt; modifier<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-77\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-56\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>PCRE<\/strong><\/td><td>Specify a PCRE (Perl compatible regular expression) pattern qualifier. By default, no pattern qualifier is specified.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-28\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: replace anything\n    args:\n     - pattern: &lt;(\/?&#91;^&lt;&gt;\\s]+)(\\s&#91;^&lt;&gt;\/]+)?(\\s\/)?&gt;\n       replacement: &lt;$1$2$3&gt;\n       limit: 1<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lazy-youtube\"><span class=\"ez-toc-section\" id=\"lazy_youtube\"><\/span>lazy youtube<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Delays execution of YouTube video scripts embedded in content in order to reduce the time it takes to display content. Lazy execution of embedded YouTube videos will be displayed as thumbnails in the content, and the videos will load when the thumbnails are clicked.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-24\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-78\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-mobile\"><span class=\"ez-toc-section\" id=\"args_%3E_mobile\"><\/span>args &gt; mobile<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-79\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-57\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resolution (mobile)<\/strong><\/strong><\/td><td>Specify the thumbnail resolution for mobile display. The following values can be specified.<br><strong>maxres:<\/strong>&nbsp;1920x1080<br><strong>sd:<\/strong>&nbsp;640x480<br><strong>hq:<\/strong>&nbsp;480x360<br><strong>mq:<\/strong>&nbsp;320x180<br><strong>'':<\/strong>&nbsp;120x90<br><br>Some videos may not have thumbnails of all sizes. The default value is \"maxres\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pc\"><span class=\"ez-toc-section\" id=\"args_%3E_pc\"><\/span>args &gt; pc<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-80\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-58\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resolution (PC)<\/strong><\/strong><\/td><td>Specify the thumbnail resolution for PC display. The following values can be specified.<br><strong>maxres:<\/strong>\u00a01920x1080<br><strong>sd:<\/strong>\u00a0640x480<br><strong>hq:<\/strong>\u00a0480x360<br><strong>mq:<\/strong>\u00a0320x180<br><strong>'':<\/strong>\u00a0120x90<br><br>Some videos may not have thumbnails of all sizes. The default value is \"maxres\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-29\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: lazy youtube\n    args:\n      mobile: mq\n      pc: mq<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"proxy\"><span class=\"ez-toc-section\" id=\"proxy\"><\/span>proxy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enables PST optimization for external resources (img, css, js) by proxying them locally.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-25\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-81\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-proxy-host\"><span class=\"ez-toc-section\" id=\"args_%3E_proxy-host\"><\/span>args &gt; proxy-host<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-82\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-59\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the host name that you want to proxy.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-target\"><span class=\"ez-toc-section\" id=\"args_%3E_target\"><\/span>args &gt; target<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-83\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Array)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-60\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>array<\/strong><\/td><td>Specify the number and types of external resources you want to proxy as a set of arrays.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-target-element\"><span class=\"ez-toc-section\" id=\"args_%3E_target_%3E_element\"><\/span>args &gt; target &gt; element<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-84\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-61\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource type<\/strong><\/strong><\/td><td>Specify the external resources you want to proxy. Specify the type \"img\", \"css\", \"js\", or \"bg\". The default value is \"all\" types.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-target-limit\"><span class=\"ez-toc-section\" id=\"args_%3E_target_%3E_limit\"><\/span>args &gt; target &gt; limit<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-85\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-62\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>number of proxies<\/strong><\/strong><\/td><td>Proxy the first \"n\" elements specified by element. If -1 is specified, PST will proxy all. The default value is -1.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-30\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: proxy\n    args:\n    - proxy-host: b.st-hatena.com\n      target:\n      - element: img\n        limit: 10\n      - element: css\n        limit: 0\n      - element: js\n        limit: 0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"engagement-delay\"><span class=\"ez-toc-section\" id=\"engagement_delay\"><\/span>engagement delay<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Delays the closure of scripts included in the content, as well as the execution of scripts and loading of style sheets, depending on the visitor's engagement with the site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By delaying the rendering for low engagement (e.g., the first visit), the FCP (First Contentful Paint) score will be faster. This will create the good impression of a site with a \"fast-response\u201d and improved user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, if the engagement is high (frequent visitors with many page views), PST will gradually reduce the delay execution and make it closer to immediate execution. The user experience score for response time will be lower, but the site operator will be able to provide the intended experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By using this directive, you can have a balance between the user experience and the quality that the site operator wants to provide, in terms of user engagement to the site.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-26\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-86\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Mapping<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-score\"><span class=\"ez-toc-section\" id=\"args_%3E_score\"><\/span>args &gt; score<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-87\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-63\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>target score<\/strong><\/strong><\/td><td>Specify the target engagement score. The default score is 250.<br><br>The engagement score increases by approximately 100 points each time a user views the site. The score also increases with page operations (refer to \"pscore\" below). As the user's engagement score approaches this target value, the latency to begin loading shortens. Also, when this value goes higher, PST will not delay execution, but will proceed immediately.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pscore\"><span class=\"ez-toc-section\" id=\"args_%3E_pscore\"><\/span>args &gt; pscore<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-88\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-64\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>target score<\/strong><\/td><td>Specify a per-session target engagement score. The default score is 10.<br><br>Even if the previous target engagement (score) is not exceeded, if the per-session target engagement score is exceeded by a page operation, the page will start loading at that point, ignoring the waiting time. The score will be increased by \"mouse hover\" events and \"scroll\" events on PCs, and by \"tap\" and \"scroll\" events on mobile devices. In addition, points will be added to the engagement score for each page operation.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-high\"><span class=\"ez-toc-section\" id=\"args_%3E_high\"><\/span>args &gt; high<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-89\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-65\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>event name<\/strong><\/strong><\/td><td>Specify the event name that starts loading when user engagement is high. The default event is \"DOMContentLoaded\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-low\"><span class=\"ez-toc-section\" id=\"args_%3E_low\"><\/span>args &gt; low<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-90\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-66\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>event name<\/strong><\/td><td>Specify the event name that starts loading when user engagement is low. The default event is \"load\".<br><br>Loading will start when the waiting time (delay) described below elapses from the specified timing.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-delay\"><span class=\"ez-toc-section\" id=\"args_%3E_delay\"><\/span>args &gt; delay<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-91\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-67\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>waiting time (milliseconds)<\/strong><\/strong><\/td><td>Specify the time unit to wait for loading to start. The default waiting time is 1000 ms.<br><br>The actual waiting time is the specified unit of waiting time multiplied by the ratio described below (ratio), and again multiplied by the ratio of the current engagement score to the target engagement score.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-ratio\"><span class=\"ez-toc-section\" id=\"args_%3E_ratio\"><\/span>args &gt; ratio<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-92\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-68\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>percentage of change to the waiting time<\/strong><\/strong><\/td><td>Specify the percentage of change to the waiting time to start loading when viewed on a mobile device. The default ratio is 4.<br><br>When user engagement is at its lowest, if delay is 1000 and ratio is 4, the waiting time will be 1 second for PC browsing and 4 seconds for mobile browsing.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-max-age\"><span class=\"ez-toc-section\" id=\"args_%3E_max-age\"><\/span>args &gt; max-age<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-93\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-69\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>expiration time (seconds)<\/strong><\/strong><\/td><td>Specify the expiration time for the user engagement score. The default value is 777600 seconds (9 days).<br><br>Until this period has elapsed since the user's last visit on the site, the last recorded engagement score will be used. According to the score, the waiting time to start loading will be shortened. If the user visits the site again after the expiration date, the engagement score will be back to the initial value. Therefore, the waiting time to start loading will be the same as the first visit.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-inline\"><span class=\"ez-toc-section\" id=\"args_%3E_inline-3\"><\/span>args &gt; inline<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-94\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-70\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether the script for \"engagement delay\" is inserted as an inline style, or loaded as an external script. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Insert the script as an inline style.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Load the script as an external script.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-debug\"><span class=\"ez-toc-section\" id=\"args_%3E_debug\"><\/span>args &gt; debug<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-95\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-71\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Enable or disable debug output. If enabled, debugged contents will be output to the browser console. The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td> Enable debug output.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td> Disable debug output.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts\"><\/span>args &gt; scripts<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-96\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-72\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>array and mapping<\/strong><\/td><td>Specify closures, scripts, and style sheets for lazy execution. See the following for details on each node.<br><br><strong>The loading order for scripts<\/strong><br>Start loading in the order of the following groups, in the order listed in the scripts.<br>1. with \"x\" in type, and \"async\" in sync.<br>2. with \"x\" in type, and \"sync\" in sync.<br>3. without \"x\" in type, and \"async\" in sync.<br>4. without \"x\" in type, and \"sync\" in sync.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-name\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_name\"><\/span>args &gt; scripts &gt; name<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-97\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-73\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource name<\/strong><\/strong><\/td><td>Specify the closure\/script\/style sheet name. This closure\/script\/style sheet name must be unique. If omitted, the name will be generated automatically.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-type\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_type\"><\/span>args &gt; scripts &gt; type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-98\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-74\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>resource type<\/strong><\/td><td>Specify the resource type.<br><strong>closure: <\/strong>Specify this for closure. You need to set a pattern.<br><strong>inline js:&nbsp;<\/strong>Specify this for inline scripts. You need to set a needle.<br><strong>css:&nbsp;<\/strong>Specify this for external style sheets. You need to set a path.<br><strong>js:&nbsp;<\/strong>Specify this for external scripts. You need to set a path.<br>If you want the type to be executed first, add an \"x\" at the end of each resource type. (e.g., jsx)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-needle\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_needle\"><\/span>args &gt; scripts &gt; needle<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-99\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-75\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>regular expressions<\/strong><\/strong><\/td><td>Specify a regular expression to match inline scripts.<br>Required when the type is inline scripts (type: inline js \/ inline jsx).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-before\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_before\"><\/span>args &gt; scripts &gt; before<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-100\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-76\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>scripts<\/strong><\/mark><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Of the inline js to be delayed, extract and specify scripts that are necessary and cannot be delayed even in content, such as variable and constant definitions. There is no default value.<br>Can be set when the type is inline scripts (type: inline js \/ inline jsx).<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-pattern\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_pattern\"><\/span>args &gt; scripts &gt; pattern<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-101\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-77\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>regular expressions<\/strong><\/strong><\/td><td>Specify a regular expression to match closure.<br>Required when the type is closure (type: closure \/ closurex).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-args\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_args\"><\/span>args &gt; scripts &gt; args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-102\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-78\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>arguments<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Specify the arguments to be passed to closure as a comma-separated string. There is no default value.<br>Can be set when the type is closure (type: closure \/ closurex).<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-script-cmd\"><span class=\"ez-toc-section\" id=\"args_%3E_script_%3E_cmd\"><\/span>args &gt; script &gt; cmd<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-103\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-79\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>functions<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Specify a function to be executed concurrently with closure. There is no default value.<br>Can be set when the type is closure (type: closure \/ closurex).<br><br><strong>function:\u00a0<\/strong>Specify a function name. (e.g. function: function_name1 )<br><strong>args:\u00a0<\/strong>Specify arguments to be passed to the function as a comma-separated string. (e.g. args: 'arg1', 'arg2', 'arg3')<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-path\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_path\"><\/span>args &gt; scripts &gt; path<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-104\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-80\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the path to the style sheet\/script. If shortened URLs (\"shorten url\") are enabled prior to this directive, please specify the path accordingly.<br>Required when the type is external style sheets or scripts (type: css \/ cssx, js \/ jsx).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-query\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_query\"><\/span>args &gt; scripts &gt; query<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-105\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-81\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>running method<\/strong><\/strong><\/td><td>If the style sheet\/script path contains version numbers or other query strings, specify how to run them. Specify \"auto\" to run them automatically. If not specified, no query string will be added. The default value is \"auto\".<br>Can be set when the type is external style sheets or scripts (type: css \/ cssx, js \/ jsx).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-original\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_original\"><\/span>args &gt; scripts &gt; original<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-106\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-82\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the absolute URL of the original style sheet. Specify the absolute URL of the original style sheet if the style sheet includes \"webfont\". Strategic AI \"David\" will generate \"config\" taking \"webfont\" into account. You can configure this value manually.<br>Can be set when the type is external style sheets or scripts (type: css \/ cssx, js \/ jsx).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-method\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_method\"><\/span>args &gt; scripts &gt; method<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-107\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-83\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify if the style sheet includes \"webfont\". Strategic AI \"David\" will generate \"config\" taking \"webfont\" into account. You can configure this value manually.<br>Can be set when the type is external style sheets (type: css \/ cssx).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-script-inline\"><span class=\"ez-toc-section\" id=\"args_%3E_script_%3E_inline\"><\/span>args &gt; script &gt; inline<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-108\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-84\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Specify whether the content of the script tag needs\/does not need to be described. The default value is false.<br>Can be set when the type is external scripts (type: js \/ jsx).<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Describe the content of the script tag.<\/mark><\/td><\/tr><tr><td><strong>false<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Do not describe the content of the script tag.<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-attr\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_attr\"><\/span>args &gt; scripts &gt; attr<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-109\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-85\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\"><strong>key:  value<\/strong><\/mark><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Specify the key and value of the attribute specified in the script tag (e.g., key: id, value: my_id). There is no default key and value.<br>Can be set when the type is external scripts (type: js \/ jsx).<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-sync\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_sync\"><\/span>args &gt; scripts &gt; sync<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-110\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-86\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>execution method<\/strong><\/strong><\/td><td>Specify the execution method for the closure\/script\/style sheet. If the closure has dependencies in the order of execution, such as a closure depending on an external script jQuery, you can specify that the scripts will be loaded sequentially. If you want to execute the closure sequentially, specify \"sync\" as a value to a series of closures or external scripts, and list them in order. If sequential execution is not required, specify \"async\" as a value. The default value is \"sync\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-comment\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_comment\"><\/span>args &gt; scripts &gt; comment<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-111\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-87\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>comment<\/strong><\/td><td><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-black-color\">Describe comment.<br>If you add a comment in a script, the script will be disabled. (The script will be a comment, not a script.)<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-apply\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_apply\"><\/span>args &gt; scripts &gt; apply<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Specify the conditions to apply to the delayed script. Specify the same format as the common \"lua\" directive \"apply\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-scripts-exclude\"><span class=\"ez-toc-section\" id=\"args_%3E_scripts_%3E_exclude\"><\/span>args &gt; scripts &gt; exclude<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Specify the conditions not to be applied to the delayed script. Specify the same format as the common \"lua\" directive \"exclude\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-31\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: engagement delay\n    args:\n      score: 180\n      pscore: 10\n      high: body\n      low: load\n      delay: 1000\n      ratio: 5\n      max-age: 3600\n      inline: true\n      scripts:\n      - name: fa\n        type: css\n        path: \/_wt\/lightning\/inc\/font-awesome\/versions\/5.6.0\/css\/all.min.css\n        query: auto\n      - name: jq\n        type: jsx\n        path: \/_wi\/js\/jquery\/jquery.js\n        query: auto\n        sync: sync\n      - name: jm\n        type: jsx\n        path: \/_wi\/js\/jquery\/jquery-migrate.min.js\n        query: auto\n        sync: sync\n      - name: lm\n        type: js\n        path: \/_wt\/lightning\/assets\/js\/lightning.min.js\n        query: auto\n        sync: async<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lazy-load\"><span class=\"ez-toc-section\" id=\"lazy_load\"><\/span>lazy load<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Delay the loading of images included in the content. Note that \"img\/iframe\" in script elements are not in scope for \"lazy load\". <mark style=\"background-color:rgba(0, 0, 0, 0);color:#ae0003\" class=\"has-inline-color\">After PST 3.1.5, \"picture\/background-image\" is no longer in scope for \"lazy load\".<\/mark><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-27\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-112\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-element\"><span class=\"ez-toc-section\" id=\"args_%3E_element\"><\/span>args &gt; element<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-113\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-88\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>tag element name<\/strong><\/strong><\/td><td>Specify the tag element that you want to Enable\/Disable for \"lazy load\". Specify \"img\/iframe\".<br><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ae0003\" class=\"has-inline-color\">After PST 3.1.5., \"picture\/style\" can no longer be specified.<\/mark><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-disable\"><span class=\"ez-toc-section\" id=\"args_%3E_disable\"><\/span>args &gt; disable<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-114\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-89\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"> Enable\/Disable \"lazy load\" for the element specified by \"args &gt; element\". The default value is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Disable \"lazy load\".<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Enable \"lazy load\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-skip\"><span class=\"ez-toc-section\" id=\"args_%3E_skip\"><\/span>args &gt; skip<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-115\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-90\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>skip number<\/strong><\/strong><\/td><td>Disable \"lazy load\" for the first \"n\" elements specified by \"args &gt; element\". The default value is 0 (all enabled).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-32\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: lazy load\n    args:\n    - element: img\n      skip: 3\n    - element: iframe\n      disable: true<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-shorten-url\"><span class=\"ez-toc-section\" id=\"wp_shorten_url\"><\/span>wp shorten url<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Shortens URLs by replacing standard WordPress paths with shortened paths. WordPress outputs absolute URLs starting from protocol, but replacing the URLs with shortened paths reduces the amount of content the browser needs to load and improves display speed. URL shortening is processed dynamically in PST, therefore you do not need to rewrite the standard paths of WordPress themes and plugins. Shorten URLs by replacing the paths as follows.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><th class=\"has-text-align-left\" data-align=\"left\"> <strong>Normal Path<\/strong><\/th><td><strong> <strong><strong>Shortened Path<\/strong><\/strong><\/strong><\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">\/wp-content\/uploads<\/td><td>\/_wu<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">\/wp-content\/themes<\/td><td>\/_wt<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">\/wp-content\/plugins<\/td><td>\/_wp<\/td><\/tr><tr><td class=\"has-text-align-left\" data-align=\"left\">\/wp-includes<\/td><td>\/_wi<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-28\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-33\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp shorten url<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-remove-emoji\"><span class=\"ez-toc-section\" id=\"wp_remove_emoji\"><\/span>wp remove emoji<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restricts the style sheets and scripts for emojis output by WordPress, thereby reducing the amount of content the browser needs to load and improving display speed. By default, PST will remove the style sheets and scripts for emoji output by the following actions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-29\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-34\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp remove emoji<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-opt-genericons\"><span class=\"ez-toc-section\" id=\"wp_opt_genericons\"><\/span>wp opt genericons<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Optimizes the icon font Genericons loaded by WordPress. Displays alternative fonts so that content will be displayed while the fonts load in the browser.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-30\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-35\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp opt genericons<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-remove-meta\"><span class=\"ez-toc-section\" id=\"wp_remove_meta\"><\/span>wp remove meta<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Restricts the meta tags that WordPress outputs, thereby reducing the amount of content the browser needs to load and improving display speed. By default, this removes the following handles.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong> <strong>Handle Name<\/strong><\/strong><\/td><\/tr><tr><td>feed_links<\/td><\/tr><tr><td>feed_links_extra<\/td><\/tr><tr><td>rsd_link<\/td><\/tr><tr><td>wlwmanifest_link<\/td><\/tr><tr><td>adjacent_posts_rel_link_wp_head<\/td><\/tr><tr><td>rest_output_link_wp_head<\/td><\/tr><tr><td>wp_oembed_add_discovery_links<\/td><\/tr><tr><td>wp_oembed_add_host_js<\/td><\/tr><tr><td>wp_shortlink_wp_head<\/td><\/tr><tr><td>rel_canonical<\/td><\/tr><tr><td>wp_generator<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-31\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-116\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-func-to-remove\"><span class=\"ez-toc-section\" id=\"args_%3E_func_to_remove-2\"><\/span>args &gt; func_to_remove<p><\/p><span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-117\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-91\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>handle<\/strong><\/td><td>Specify additional handles to be removed.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-meta\"><span class=\"ez-toc-section\" id=\"args_%3E_meta\"><\/span>args &gt; meta<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-118\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String \/ Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-92\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>needle (search string)<\/strong><\/strong><\/td><td>Specify a needle (search string) for the meta tag to be output by the handle specified by \"func_to_remove\". By setting false, the meta tag will not be removed.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-36\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp remove meta\n    args\n    - func_to_remove: generator\n      meta: 'name=\"generator\"'<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wp-remove-wpcf7\"><span class=\"ez-toc-section\" id=\"wp_remove_wpcf7\"><\/span>wp remove wpcf7<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Optimizes the scripts and style sheets for \"Contact Form 7\", a WordPress Form plug-in. When Contact Form 7 is enabled in WordPress, the scripts and style sheets are loaded even on pages with no forms. By enabling this directive, the loading of Contact Form 7 scripts and style sheets, is restricted, thereby reducing the amount of content the browser needs to load and improving display speed. Note, these scripts and style sheets are necessary for pages with forms. Therefore, please exclude pages with forms by specifying them with \"exclude\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-32\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-37\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: wp remove wpcf7\n    exclude:\n      if:\n        is_page: contactus<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"deduplicate-script\"><span class=\"ez-toc-section\" id=\"deduplicate_script\"><\/span>deduplicate script<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the exact same script is loaded multiple times, keeps only one script and removes the rest. (The previous version was \"reduce script\").<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-33\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-119\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-apply-script\"><span class=\"ez-toc-section\" id=\"args_%3E_apply_script-2\"><\/span>args &gt; apply_script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-120\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-93\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>script path<\/strong><\/strong><\/td><td>Specify the path of the applied script. It can also be specified by regular expressions. The default path is \".\".<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-exclude-script\"><span class=\"ez-toc-section\" id=\"args_%3E_exclude_script-2\"><\/span>args &gt; exclude_script<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-121\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-94\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>script path<\/strong><\/strong><\/td><td>Specify the path of the script to be excluded. It can also be specified by regular expressions. The default value is false.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-38\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: deduplicate script\n    args:\n      apply_script: jquery<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lazy-video\"><span class=\"ez-toc-section\" id=\"lazy_video\"><\/span>lazy video<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the video tag is loaded, specifies \"none\" for the \"preload\" attribute in order to delay loading.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-34\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-39\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: lazy video<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"normalize-newlines\"><span class=\"ez-toc-section\" id=\"normalize_newlines\"><\/span>normalize newlines<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Converts Windows line feed code \"CR+LF\" and Mac line feed code \"CR\" to \"LF\" to normalize line feed code.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-35\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-40\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: normalize newlines<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"tidy\"><span class=\"ez-toc-section\" id=\"tidy\"><\/span>tidy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If a required tag is missing on the HTML coding, PST will insert the tag. Note that the \"tidy\" directive is available only for the \"php7\/php-fpm\" back-end. This will be disabled for \"hhvm\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-36\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-41\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: tidy<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"split-inline-css-webfont\"><span class=\"ez-toc-section\" id=\"split_inline_css_webfont\"><\/span>split inline css webfont<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Groups together inline style sheets and converts them to external style sheets. If \"webfont\" is included in the css, PST will delay loading in the same way as \"split_css_webfont\". Note that the expiration time (Cache-Control: max-age) of the resource is set. The default time is 2 hours.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-37\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-42\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: split inline css webfont<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"normalize-jquery\"><span class=\"ez-toc-section\" id=\"normalize_jquery\"><\/span>normalize jquery<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">jNormalizes jQuery script specifications. (The previous version was \"repair jquery\".)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-38\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-43\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: normalize jquery<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"secure-target-blank\"><span class=\"ez-toc-section\" id=\"secure_target_blank\"><\/span>secure target blank<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds rel=\"noopener noreferrer\" to target=\"_blank\" to tags that do not have the \"rel\" attribute. This improves performance and addresses the target=\"_blank\" vulnerability.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-39\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-44\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: secure target blank<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"nanofy-url\"><span class=\"ez-toc-section\" id=\"nanofy_url\"><\/span>nanofy url<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Used when the <a href=\".\/pst-command\/#\u30aa\u30d7\u30b7\u30e7\u30f3-4\" data-type=\"URL\" data-id=\".\/pst-command\/#\u30aa\u30d7\u30b7\u30e7\u30f3-4\">\"nano\" option<\/a> is enabled in the initial PST configuration (init). Essentially, users can not use this on their own.<a rel=\"noreferrer noopener\" href=\"https:\/\/www.wexal.jp\/document-3-0-0\/pst-command\/#%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3-4\" target=\"_blank\"><\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-40\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">None<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"add-link\"><span class=\"ez-toc-section\" id=\"add_link-2\"><\/span>add link<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Adds links to external resources.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-41\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-122\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-rel\"><span class=\"ez-toc-section\" id=\"args_%3E_rel-2\"><\/span>args &gt; rel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-123\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-95\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>link type<\/strong><\/strong><\/td><td>Specify the link type for the \"rel\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-id\"><span class=\"ez-toc-section\" id=\"args_%3E_id\"><\/span>args &gt; id<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-124\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-96\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>element ID<\/strong><\/strong><\/td><td>Specify the element ID for the \"id\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href-4\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-125\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-97\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-as\"><span class=\"ez-toc-section\" id=\"args_%3E_as-2\"><\/span>args &gt; as<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-126\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-98\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource type<\/strong><\/strong><\/td><td>Specify the resource type for the \"as\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-imagesrcset\"><span class=\"ez-toc-section\" id=\"args_%3E_imagesrcset\"><\/span>args &gt; imagesrcset<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-127\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-99\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource value<\/strong><\/strong><\/td><td>Specify the resource value for the \"imagesrcset\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-imagesizes\"><span class=\"ez-toc-section\" id=\"args_%3E_imagesizes\"><\/span>args &gt; imagesizes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-128\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-100\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource size value<\/strong><\/strong><\/td><td>Specify the resource size value for the \"imagesizes\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-type\"><span class=\"ez-toc-section\" id=\"args_%3E_type-2\"><\/span>args &gt; type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-129\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-101\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>content type<\/strong><\/strong><\/td><td>Specify the content type for the \"type\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-media\"><span class=\"ez-toc-section\" id=\"args_%3E_media-5\"><\/span>args &gt; media<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-130\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-102\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>media queries<\/strong><\/strong><\/td><td>Specify the media query for the \"media\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-crossorigin\"><span class=\"ez-toc-section\" id=\"args_%3E_crossorigin-2\"><\/span>args &gt; crossorigin<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-131\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Boolean)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-103\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"> Specify Enable\/Disable CORS (Cross-Origin Resource Sharing). The default setting is false.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>true<\/strong><\/td><td>Enable CORS.<\/td><\/tr><tr><td><strong>false<\/strong><\/td><td>Disable CORS.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-5\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-132\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-104\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong><\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;head&gt;\" to place it after the \"&lt;head&gt;\" tag, or \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-45\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: add link\n    args:\n    - rel: stylesheet\n      href: \/_wp\/so-widgets-bundle\/widgets\/button\/css\/style.css\n      pos: &lt;\/head&gt;\n      as: style<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"link-dns-prefetch\"><span class=\"ez-toc-section\" id=\"link_dns_prefetch\"><\/span>link dns prefetch<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Optimizes DNS name resolution for external resources by enabling the \"dns-prefetch\" and \"preconnect\" attributes of the \"link\" tag.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-42\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-133\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-rel\"><span class=\"ez-toc-section\" id=\"args_%3E_rel-3\"><\/span>args &gt; rel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-134\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-105\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>link type<\/strong><\/strong><\/td><td>Specify the link type for the \"rel\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href-5\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-135\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-106\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-6\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-136\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-107\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>position to add<\/strong><\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;head&gt;\" to place it after the \"&lt;head&gt;\" tag, or \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-46\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: link dns prefetch\n    args:\n    - rel: dns prefetch\n      href: https:\/\/www.google.com\/\n      pos: &lt;\/head&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"link-lcp-preload\"><span class=\"ez-toc-section\" id=\"link_lcp_preload\"><\/span>link lcp preload<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Optimizes the display of the first view by enabling LCP (Largest Contentful Paint) image \"preload\".<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args\"><span class=\"ez-toc-section\" id=\"args-43\"><\/span>args<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-137\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-rel\"><span class=\"ez-toc-section\" id=\"args_%3E_rel-4\"><\/span>args &gt; rel<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-138\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-108\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>link type<\/strong><\/td><td>Specify the link type for the \"rel\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-href\"><span class=\"ez-toc-section\" id=\"args_%3E_href-6\"><\/span>args &gt; href<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-139\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-109\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>URL<\/strong><\/td><td>Specify the URL for the \"href\" attribute of the \"link\" element as a string.<br>This cannot be omitted.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-element\"><span class=\"ez-toc-section\" id=\"args_%3E_element-2\"><\/span>args &gt; element<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-140\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-110\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>element name<\/strong><\/td><td>Specify the element name for the \"id\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-as\"><span class=\"ez-toc-section\" id=\"args_%3E_as-3\"><\/span>args &gt; as<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-141\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-111\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>resource type<\/strong><\/td><td>Specify the resource type for the \"as\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-imagesrcset\"><span class=\"ez-toc-section\" id=\"args_%3E_imagesrcset-2\"><\/span>args &gt; imagesrcset<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-142\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-112\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource value<\/strong><\/strong><\/td><td>Specify the resource value for the \"imagesrcset\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-imagesizes\"><span class=\"ez-toc-section\" id=\"args_%3E_imagesizes-2\"><\/span>args &gt; imagesizes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-143\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-113\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>resource size value<\/strong><\/strong><\/td><td>Specify the resource size value for the \"imagesizes\" attribute of the \"link\" element as a string.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"args-pos\"><span class=\"ez-toc-section\" id=\"args_%3E_pos-7\"><\/span>args &gt; pos<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u578b\"><span class=\"ez-toc-section\" id=\"Type-144\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"\u5024\"><span class=\"ez-toc-section\" id=\"Value-114\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong><strong>position to add<\/strong><\/strong><\/strong><\/td><td>Specify the position to add the inline script. Specify \"&lt;head&gt;\" to place it after the \"&lt;head&gt;\" tag, or \"&lt;\/head&gt;\" to place it before the \"&lt;\/head&gt;\" tag. The default value is \"&lt;\/head&gt;\".<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"\u4f8b\"><span class=\"ez-toc-section\" id=\"Example-47\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>lua:\n  body_filter:\n  - cmd: link lcp preload\n    args:\n    - rel: preload\n      element: img\n      href: https:\/\/www.wexal.jp\/wp-content\/uploads\/2020\/07\/4a125c266368383c22b0e669d4b7894d.jpg\n      as: image\n      pos: &lt;\/head&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Basic Coding The following are the \"lua\" directive coding rules. cmd Specifies the name of the \"lua\" directive to be executed. Type Scalar (String) Value directive name Specify the name of the directive.This cannot be omitted. Example args Specifies options for the \"lua\" directive to be executed. Type Sequence (Mapping) or Mapping Value Options are different depending on the selected \"lua\" directive. Refer to each \"lua\" directive for more information. Example apply Specifies the path or the conditions to be applied to the \"lua\" directive.If more than one is specified, the OR condition will be used. Type Mapping apply &gt; path Specifies the path to be applied to the \"lua\" ... <\/p>\n<p class=\"read-more-container\"><a title=\"&quot;lua&quot; Directive (3.1.5)\" class=\"read-more button\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/#more-6022\" aria-label=\"Read more about &quot;lua&quot; Directive (3.1.5)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6016,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"version":[16],"class_list":["post-6022","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;lua&quot; Directive (3.1.5) - WEXAL\u00ae Page Speed Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;lua&quot; Directive (3.1.5) - WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"og:description\" content=\"Basic Coding The following are the &quot;lua&quot; directive coding rules. cmd Specifies the name of the &quot;lua&quot; directive to be executed. Type Scalar (String) Value directive name Specify the name of the directive.This cannot be omitted. Example args Specifies options for the &quot;lua&quot; directive to be executed. Type Sequence (Mapping) or Mapping Value Options are different depending on the selected &quot;lua&quot; directive. Refer to each &quot;lua&quot; directive for more information. Example apply Specifies the path or the conditions to be applied to the &quot;lua&quot; directive.If more than one is specified, the OR condition will be used. Type Mapping apply &gt; path Specifies the path to be applied to the &quot;lua&quot; ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/\" \/>\n<meta property=\"og:site_name\" content=\"WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-28T11:14:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-lua-directive\\\/\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-lua-directive\\\/\",\"name\":\"\\\"lua\\\" Directive (3.1.5) - WEXAL\u00ae Page Speed Technology\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\"},\"datePublished\":\"2021-09-21T09:24:32+00:00\",\"dateModified\":\"2022-12-28T11:14:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-lua-directive\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-lua-directive\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-lua-directive\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation (3.0.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PST Configuration File (3.2.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\\\"lua\\\" Directive (3.1.5)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/\",\"name\":\"WEXAL\u00ae Page Speed Technology\",\"description\":\"the best UX for all Websites.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wexal.jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"lua\" Directive (3.1.5) - WEXAL\u00ae Page Speed Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/","og_locale":"en_US","og_type":"article","og_title":"\"lua\" Directive (3.1.5) - WEXAL\u00ae Page Speed Technology","og_description":"Basic Coding The following are the \"lua\" directive coding rules. cmd Specifies the name of the \"lua\" directive to be executed. Type Scalar (String) Value directive name Specify the name of the directive.This cannot be omitted. Example args Specifies options for the \"lua\" directive to be executed. Type Sequence (Mapping) or Mapping Value Options are different depending on the selected \"lua\" directive. Refer to each \"lua\" directive for more information. Example apply Specifies the path or the conditions to be applied to the \"lua\" directive.If more than one is specified, the OR condition will be used. Type Mapping apply &gt; path Specifies the path to be applied to the \"lua\" ... Read more","og_url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/","og_site_name":"WEXAL\u00ae Page Speed Technology","article_modified_time":"2022-12-28T11:14:41+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/","url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/","name":"\"lua\" Directive (3.1.5) - WEXAL\u00ae Page Speed Technology","isPartOf":{"@id":"https:\/\/www.wexal.jp\/#website"},"datePublished":"2021-09-21T09:24:32+00:00","dateModified":"2022-12-28T11:14:41+00:00","breadcrumb":{"@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-lua-directive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wexal.jp\/en\/"},{"@type":"ListItem","position":2,"name":"Documentation (3.0.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/"},{"@type":"ListItem","position":3,"name":"PST Configuration File (3.2.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/"},{"@type":"ListItem","position":4,"name":"\"lua\" Directive (3.1.5)"}]},{"@type":"WebSite","@id":"https:\/\/www.wexal.jp\/#website","url":"https:\/\/www.wexal.jp\/","name":"WEXAL\u00ae Page Speed Technology","description":"the best UX for all Websites.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wexal.jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/comments?post=6022"}],"version-history":[{"count":9,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6022\/revisions"}],"predecessor-version":[{"id":6426,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6022\/revisions\/6426"}],"up":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6016"}],"wp:attachment":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/media?parent=6022"}],"wp:term":[{"taxonomy":"version","embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/version?post=6022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}