title: Vis.js callback when the network finishes loading
body: <p>I'm using a <a href="http://visjs.org/" rel="nofollow noreferrer">vis.js</a> network that takes in some data and add's said data as nodes within the network.</p>
  
  <p>The only issue is that after the network has been declared (using the nodes and edges specified, which may be a lot) it takes a while for the nodes in the network to render in.</p>
  
  <p>Even when I declare the network like so:</p>
  
  <pre><code>var network = new vis.Network(container, data, options);
  </code></pre>
  
  <p>And then follow it up with making the container visible:</p>
  
  <pre><code>$('#BreakdownBox').css('display','inline');
  </code></pre>
  
  <p>It still becomes visible before the nodes have finished buffering, showing a blank canvas until they've rendered in.</p>
  
  <p><strong>My Question:</strong> How can I only make it visible once it's finished loading the nodes? 
  Is there a way to use the <a href="https://www.promisejs.org/" rel="nofollow noreferrer">promises.js</a> with this? Something like:</p>
  
  <pre><code>var network = new vis.Network(container, data, options).done(function{
      $('#BreakdownBox').css('display','inline');
  });
  </code></pre>