title: Load Rendered Content, Jquery Templates or Bigpipe? Building a complex website
body: <p>I know this question has been asked, how to make a site like facebook/gmail as in loading in the content.</p>
  
  <p>But answers are thin on the ground.  To help, I have done some research.  Has anyone looked into this and can give some guidence?</p>
  
  <p>I have 3 different routes I could go:</p>
  
  <p>1) jquery.load (load in html), load in css and getscript JS.</p>
  
  <p>What I do not yet understand and I need to figure out, is how to keep track of what CSS / JS has been dynamically loaded in.  IOW I don't want to keep loading in the same CSS/JS when a user visits a page they already have cached.</p>
  
  <p>Would it be wise to use global JS variables, or hidden divs?</p>
  
  <p>2) Bigpipe.</p>
  
  <p>I have seen implementations of this for .net.  But does anyone know of a PHP implementation.  I see this on github: <a href="https://github.com/dynamoid/bigpipe" rel="nofollow">https://github.com/dynamoid/bigpipe</a>  But I wasn't too impressed with it.  Any other implementations?</p>
  
  <p>3) Jquery Templates</p>
  
  <p>I have been doing a bit of research with this.  Would this be the best way to go?  Even if I can get the template to get loaded first (and cached) and then the data to be applied to it.  I am still fuzzy on keeping track of what CSS and JS is loaded per page.</p>
  
  <p>Finally, if you know of any resources that talks about choices of best practices, please let me know.</p>
  
  <p>Thanks :)</p>