From 89d8738726044dcdaefd9ef44a8111fbaa166623 Mon Sep 17 00:00:00 2001 From: Thorsten Vitt Date: Sun, 13 Nov 2016 19:23:13 +0100 Subject: [PATCH] Another attempt to fix the rendering timing issue Cf. faustedition/faust-web#22 --- data | 2 +- pom.xml | 1 + rendersvgs.js | 3 ++- svg_rendering/page/transcript-generation.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/data b/data index d67e8e2..f80df34 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit d67e8e25ef85fcea6b4122b5b0343e384d217541 +Subproject commit f80df34e89cda08d895023afaec18408e6f57521 diff --git a/pom.xml b/pom.xml index f2523e1..93533d4 100644 --- a/pom.xml +++ b/pom.xml @@ -270,6 +270,7 @@ -Dfaust.diplo.allowedFailures=${faust.diplo.allowedFailures} -Dfaust.diplo.server=${faust.diplo.server} -Dfaust.diplo.debug=${faust.diplo.debug} + -Djava.util.concurrent.ForkJoinPool.common.parallelism=20 net.faustedition.gen.DiplomaticConversion diff --git a/rendersvgs.js b/rendersvgs.js index 11944ca..614b448 100644 --- a/rendersvgs.js +++ b/rendersvgs.js @@ -59,10 +59,11 @@ page.open(backend, function(status) { imagelinks = links? fs.read(links, {mode: "r", charset: "UTF-8"}) : undefined; function render(transcript, imagelinks) { + document.getElementById('preload').remove(); transcriptGeneration.createToPhantom(transcript, imagelinks); }; page.render("target/preload.png"); - window.setTimeout(function() { page.evaluate(render, transcript, imagelinks); }, 500); + window.setTimeout(function() { page.evaluate(render, transcript, imagelinks); }, 1000); }); diff --git a/svg_rendering/page/transcript-generation.html b/svg_rendering/page/transcript-generation.html index 9622295..1a242f3 100644 --- a/svg_rendering/page/transcript-generation.html +++ b/svg_rendering/page/transcript-generation.html @@ -50,7 +50,7 @@
-