I think you’ll be interested in the other questions tagged data-loading (in fact, I will add that tag to your question after I finish writing this ). Particularly this one, which sounds very close to what you’re trying to do: