mediawiki.page.image.pagination: Cache last-loaded pages
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 30 Jul 2014 17:54:38 +0000 (19:54 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sun, 28 Sep 2014 16:12:47 +0000 (16:12 +0000)
commitfa63d16464e7b175e5f12a6b74f9163d90520a18
treedfb6331f4a122355ab41c924c5eca57848b5dccf
parent911fd76521d9a3ade214079f3b6b8dbd82a43726
mediawiki.page.image.pagination: Cache last-loaded pages

I often find myself switching back-and-forth between the few pages I
last looked at. Let's cache their information to avoid downloading it
again and again.

I've only implemented a count-based limit on the queue (no more than
10 entries) and no time-based limit (entries never expire). I don't
think one is necessary, but that might be due to my laziness…

Change-Id: I5873946e3e3b37a8951c1ac84e3e1a206b9300d1
resources/src/mediawiki.page/mediawiki.page.image.pagination.js