Reduce page size by hacking around chrome concurrency request bug

This commit is contained in:
Ian Gulliver
2019-07-14 19:13:47 +00:00
parent 89130382b4
commit 25e227d7f8
2 changed files with 31 additions and 5 deletions

View File

@@ -1,4 +1,11 @@
addEventListener('message', (e) => {
if (e.data.command == 'ping') {
postMessage({
command: 'pong',
});
return;
}
let graph = new Graph(e.data);
let layout = new Layout(graph);
postMessage({