Re: [whatwg] Persistent and temporary storage

On 18 Mar 2015, at 00:45, Karl Dubost <karl@la-grange.net> wrote:

> Hi Timo,
> 
> Le 18 mars 2015 à 09:38, Krinkle <krinklemail@gmail.com> a écrit :
>> 2. HTTP 304 hits are not free.
>> 
>> We found that loading JS/CSS from LocalStorage was faster than hitting a HTTP 304. Making enough difference to justify this change.
> 
> 
> Did you publish your tests and the results somewhere across browsers and devices?
> This is quite interesting.
> 

We have :-)

Here is the relevant commit that initially introduced the feature:
https://github.com/wikimedia/mediawiki/commit/c719401661

(Note that several changes were made before the first deployment, so the diff isn't conclusive but the commit message is interesting. Refer to the relevant files in 'master' for the currently deployed implementation.)

The research was done by A/B testing this feature for a small amount of our traffic (a few million page views) over the course of three days. The feature was subsequently enabled in late 2013 for all users. (That is, for user agents passing the localStorage feature test.)

Published here:
https://meta.wikimedia.org/wiki/Research:Module_storage_performance

— Krinkle

Received on Wednesday, 18 March 2015 01:51:14 UTC