diff --git a/previewers/betatest/js/rocrate.js b/previewers/betatest/js/rocrate.js index 1b37bd3..7abed73 100644 --- a/previewers/betatest/js/rocrate.js +++ b/previewers/betatest/js/rocrate.js @@ -18,6 +18,6 @@ function writeContentAndData(data, fileUrl, file, title, authors) { s2.src = "https://unpkg.com/ro-crate-html-js/dist/ro-crate-dynamic.js"; scripts.append(s2); var s3 = document.createElement("script"); - s3.text = "window.onload();"; + s3.text = "setTimeout(function(){ onload(); }, 5000);"; scripts.append(s3); }