W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2015

Re: [whatwg] Persistent and temporary storage

From: Krinkle <krinklemail@gmail.com>
Date: Wed, 18 Mar 2015 01:50:47 +0000
Message-Id: <8CB85B2C-1FBB-478C-B933-82DC57A71F7F@gmail.com>
To: Karl Dubost <karl@la-grange.net>
Cc: WHATWG <whatwg@whatwg.org>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:29 UTC