title: How to pass MBs of data from PHP to Javascript
body: <p>I am developing a Turn Based Strategy Game where I output a series of arrays from PHP to be animated in canvas using javascript.</p>
  
  <p>Given that I am aiming at 20 fps (frames per second) in the javascript/canvas  the php is producing a lot of information for the browser to receive and then handle.</p>
  
  <p>How can I pass these php arrays to javascript?</p>
  
  <p>EDIT
  The volume of data I'm specifically refering to is about 5 megabytes per turn.</p>