From 64125e6e42e4103cba123d1eff5df279b517e8cf Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 18 Feb 2020 00:17:42 +0800 Subject: [PATCH] Optimized the JS import sequence. --- _includes/head.html | 2 ++ assets/js/_src/{_commons/tooltip.js => tooltip-loader.js} | 0 assets/js/dist/commons.js | 1 - .../js/dist/{_commons/tooltip.min.js => tooltip-loader.min.js} | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename assets/js/_src/{_commons/tooltip.js => tooltip-loader.js} (100%) rename assets/js/dist/{_commons/tooltip.min.js => tooltip-loader.min.js} (100%) diff --git a/_includes/head.html b/_includes/head.html index 12fab2a..9943f18 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -146,4 +146,6 @@ {% endif %} + + \ No newline at end of file diff --git a/assets/js/_src/_commons/tooltip.js b/assets/js/_src/tooltip-loader.js similarity index 100% rename from assets/js/_src/_commons/tooltip.js rename to assets/js/_src/tooltip-loader.js diff --git a/assets/js/dist/commons.js b/assets/js/dist/commons.js index b3d1e26..73bd715 100644 --- a/assets/js/dist/commons.js +++ b/assets/js/dist/commons.js @@ -9,5 +9,4 @@ {% include_relative _commons/sidebar.min.js %} {% include_relative _commons/topbar-switch.min.js %} {% include_relative _commons/topbar-title.min.js %} -{% include_relative _commons/tooltip.min.js %} {% include_relative _commons/copy-link.min.js %} \ No newline at end of file diff --git a/assets/js/dist/_commons/tooltip.min.js b/assets/js/dist/tooltip-loader.min.js similarity index 100% rename from assets/js/dist/_commons/tooltip.min.js rename to assets/js/dist/tooltip-loader.min.js