HTTP resource bundling/streaming practice

Posted by icelava on Programmers See other posts from Programmers or by icelava
Published on 2013-09-19T03:20:25Z Indexed on 2013/11/13 4:12 UTC
Read the original article Hit count: 203

Filed under:

Our SPA (plain HTML and Javascript) makes use of huge volume of javascript and other resources that are downloaded via XHR. Given the sheer number of components and browser simultaneous request limits, we're thinking for ways to deliver our resources in a more efficient manner.

A method we're considering is bundling several resources that logically form a coherent group into a single file; thus reducing down to only one XHR (per group). Furthermore to make it more responsive, we'd like to constantly inspect the partial responseText during the LOADING state, determining if a usable chunk (atomic resource) has already been downloaded, and make it available for deserialization/processing even before the XHR is DONE. (a stream-like experience)

We're thinking surely somebody else would've considered roughly the same approach before, but haven't really come across any library/framework or container file format that is suitable for our scenario. Anybody else know of something similar?

© Programmers or respective owner

Related posts about xmlhttprequest