Load JavaScript with async

This commit is contained in:
StevenJoeZhang 2019-06-12 12:21:10 +08:00
parent 79dfa12eea
commit e5f256f88a

View File

@ -7,16 +7,14 @@ $("<link>").attr({href: live2d_path + "waifu.css", rel: "stylesheet", type: "tex
$.ajax({ $.ajax({
url: live2d_path + "live2d.min.js", url: live2d_path + "live2d.min.js",
dataType: "script", dataType: "script",
cache: true, cache: true
async: false
}); });
//live2d.min.js的绝对路径 //live2d.min.js的绝对路径
$.ajax({ $.ajax({
url: live2d_path + "waifu-tips.js", url: live2d_path + "waifu-tips.js",
dataType: "script", dataType: "script",
cache: true, cache: true
async: false
}); });
//waifu-tips.js的绝对路径 //waifu-tips.js的绝对路径