Skip to content

Support not using web worker

Compare
Choose a tag to compare
@magjac magjac released this 11 Mar 22:50
· 1086 commits to master since this release
  • Support not using a web worker by setting the new argument useWorker=false in the call to the graphviz() create method.

NOTE: When a web worker is not used, when loading of the viz.js script, the script type shall be "text/javascript", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="test/javascript"></script>
When using a web worker, the script type shall be "javascript/worker", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="javascript/worker"></script>