From c31f54a01537bd68b83ed289a406b154499d8f21 Mon Sep 17 00:00:00 2001 From: MHuiG <616001163@qq.com> Date: Thu, 16 Jun 2022 21:32:53 +0800 Subject: [PATCH] feat(scrollreveal&style.css): slow network --- layout/_partial/scripts/index.ejs | 2 ++ layout/_plugins/end-of-support/script.ejs | 2 +- layout/_plugins/slow-network/script.ejs | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 layout/_plugins/slow-network/script.ejs diff --git a/layout/_partial/scripts/index.ejs b/layout/_partial/scripts/index.ejs index 51bf9366b..0b49ef47a 100644 --- a/layout/_partial/scripts/index.ejs +++ b/layout/_partial/scripts/index.ejs @@ -138,6 +138,8 @@ <%- partial('content-visibility-scroll-fix') %> +<%- partial('../../_plugins/slow-network/script') %> + <% if (theme.structured_data && theme.structured_data.enable) { %> <%- structured_data() %> <% } %> diff --git a/layout/_plugins/end-of-support/script.ejs b/layout/_plugins/end-of-support/script.ejs index c20348497..4851b10d2 100644 --- a/layout/_plugins/end-of-support/script.ejs +++ b/layout/_plugins/end-of-support/script.ejs @@ -26,7 +26,7 @@ if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMo '
'+ `<%- __('kill.title')%>
`+ `<%- __('kill.ie')%>
`+ - `<%- __('kill.more')%>`+ + `<%- __('kill.more')%>`+ '
'); <% } %> diff --git a/layout/_plugins/slow-network/script.ejs b/layout/_plugins/slow-network/script.ejs new file mode 100644 index 000000000..49e13d286 --- /dev/null +++ b/layout/_plugins/slow-network/script.ejs @@ -0,0 +1,14 @@ + \ No newline at end of file