title: Lazy loading with python and flask
body: <p>I’ve build a web based data dashboard that shows 4 graphs - each containing a large amount of data points.</p>
  
  <p>When the URL endpoint is visited Flask calls my python script that grabs the data from a sql server and then starts manipulating it and finally outputs the bokeh graphs. </p>
  
  <p>However, as these graphs get larger/there becomes more graphs on the screen the website takes long to load - since the entire function has to run before something is displayed.</p>
  
  <p>How would I go about lazy loading these? I.e. it loads the first (most important graph) and displays it while running the function for the other graphs, showing them as and when they finish running (showing a sort of loading bar where each of the graphs are or something).</p>
  
  <p>Would love some advice on how to implement this or similar.</p>
  
  <p>Thanks!</p>