mirror of
https://github.com/caojiezi2003/live2d-widget.git
synced 2024-11-22 23:29:45 +00:00
Load JavaScript with async
This commit is contained in:
parent
79dfa12eea
commit
e5f256f88a
@ -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的绝对路径
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user