From c39c8db914a2cbbcd4d42108c69fe3181c743571 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 30 Dec 2023 11:47:45 +0800 Subject: [PATCH] [fix] #338 --- source/js/main.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/js/main.js b/source/js/main.js index 98c4090..d6904ba 100644 --- a/source/js/main.js +++ b/source/js/main.js @@ -244,9 +244,12 @@ if (stellar.plugins.stellar) { const els = document.getElementsByClassName('stellar-' + key + '-api'); if (els != undefined && els.length > 0) { stellar.jQuery(() => { - stellar.loadScript(js, { defer: true }); if (key == 'timeline' || 'memos') { - stellar.loadScript(stellar.plugins.marked); + stellar.loadScript(stellar.plugins.marked).then(function () { + stellar.loadScript(js, { defer: true }); + }); + } else { + stellar.loadScript(js, { defer: true }); } }) }