Changes

Jump to: navigation, search

Platform/AreWeFunYet

441 bytes added, 10:53, 2 March 2012
Compression of JavaScript code
Game developers want to minimize the size of code to deliver it faster to the client. Current mechanisms for that are JS minification, and gzip compression at the level of the HTTP server. Some game developers expressed concerns with that: they wanted better compression algorithms (LZMA) and they wanted something that can be used without knowing how to configure a HTTP server.
 
-- Idea: can we standardize a flag on XMLHTTPRequests which says ... "and decompress it before giving it to me"? So they could have two versions on the server - a minified and a .gz. They check for support for this feature and, if it's present, set the flag and stick ".gz" on the end of the requested filename. XMLHTTPRequest fetches the data, decompresses it internally and just presents it as if it had not even been compressed. -- Gerv
=== Speed of first-run ===
Accountapprovers, antispam, confirm, emeritus
4,925
edits

Navigation menu