summaryrefslogtreecommitdiff
path: root/resources/scripts/player/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/player/init.js')
-rw-r--r--resources/scripts/player/init.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/scripts/player/init.js b/resources/scripts/player/init.js
new file mode 100644
index 0000000..34b7c62
--- /dev/null
+++ b/resources/scripts/player/init.js
@@ -0,0 +1,18 @@
+(function () {
+ $.holdReady(true);
+
+ var script = window.document.createElement("script");
+ script.type = "text/javascript";
+ script.async = true;
+ script.onload = script.onreadystatechange = function (e, isAbort) {
+ if (isAbort || !script.readyState || /loaded|complete/.test(script.readyState)) {
+ script.onload = script.onreadystatechange = null;
+ script = undefined;
+ }
+
+ if (!isAbort) { $.holdReady(false); }
+ }
+
+ script.src = "data/document.js";
+ window.document.head.appendChild(script);
+})(); \ No newline at end of file