From e5f256f88a36960aff5aaf6e134df0db4f6831a2 Mon Sep 17 00:00:00 2001 From: StevenJoeZhang <1119186082@qq.com> Date: Wed, 12 Jun 2019 12:21:10 +0800 Subject: [PATCH] Load JavaScript with async --- autoload.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autoload.js b/autoload.js index 965ba16..b82cf45 100644 --- a/autoload.js +++ b/autoload.js @@ -7,16 +7,14 @@ $("").attr({href: live2d_path + "waifu.css", rel: "stylesheet", type: "tex $.ajax({ url: live2d_path + "live2d.min.js", dataType: "script", - cache: true, - async: false + cache: true }); //live2d.min.js的绝对路径 $.ajax({ url: live2d_path + "waifu-tips.js", dataType: "script", - cache: true, - async: false + cache: true }); //waifu-tips.js的绝对路径