Skip to content

Commit

Permalink
Another attempt to fix the rendering timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Nov 13, 2016
1 parent 3679dda commit 89d8738
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data
Submodule data updated from d67e8e to f80df3
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
<argument>-Dfaust.diplo.allowedFailures=${faust.diplo.allowedFailures}</argument>
<argument>-Dfaust.diplo.server=${faust.diplo.server}</argument>
<argument>-Dfaust.diplo.debug=${faust.diplo.debug}</argument>
<argument>-Djava.util.concurrent.ForkJoinPool.common.parallelism=20</argument>
<argument>net.faustedition.gen.DiplomaticConversion</argument>
</arguments>
</configuration>
Expand Down
3 changes: 2 additions & 1 deletion rendersvgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

});
2 changes: 1 addition & 1 deletion svg_rendering/page/transcript-generation.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<div id="container">

</div>
<div id="preload" style="visibility:hidden">
<div id="preload">
<!--
This container is used to actually pre-load a bunch of resources so they are
definitely available before the rendering starts.
Expand Down

0 comments on commit 89d8738

Please sign in to comment.