From 26326efd4dc5f9e6e4c4ff3947fdfb7a54a15495 Mon Sep 17 00:00:00 2001 From: ppoffice Date: Sun, 13 Sep 2020 00:25:17 -0400 Subject: [PATCH] chore(layout): optimize external script loading --- layout/common/head.jsx | 2 +- layout/common/scripts.jsx | 6 +++--- layout/plugin/back_to_top.jsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/common/head.jsx b/layout/common/head.jsx index f503c01..2f5e9de 100644 --- a/layout/common/head.jsx +++ b/layout/common/head.jsx @@ -150,7 +150,7 @@ module.exports = class extends Component { {adsenseClientId ? : null} + src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" async> : null} ; } }; diff --git a/layout/common/scripts.jsx b/layout/common/scripts.jsx index 0339842..5c51b03 100644 --- a/layout/common/scripts.jsx +++ b/layout/common/scripts.jsx @@ -31,12 +31,12 @@ module.exports = class extends Component { return + {clipboard && } - {clipboard ? : null} - + - + ; } }; diff --git a/layout/plugin/back_to_top.jsx b/layout/plugin/back_to_top.jsx index b25d7b4..c3b6e8d 100644 --- a/layout/plugin/back_to_top.jsx +++ b/layout/plugin/back_to_top.jsx @@ -9,7 +9,7 @@ class BackToTop extends Component { - + ; }