mediawiki-extensions-Multim.../resources/mmv
Gergő Tisza fec24e02f7 Refactor progressbar & blur handling
This tries to fix a number of related issues:
* the blurred thumbnail was visible for a split-second sometimes
  when switching back to an already-loaded image. (Presumably when
  JS was sluggish enough to take more than 10 ms to execute.) We
  now check whether the promise is pending before showing a placeholder.
  (More generally, a lot of unnecessary logic was executed when paging
  through already loaded images, like displaying the placeholder, so
  this might make the UI a bit more responsive.)
* the blur could get stuck sometimes - I have seen this a few times,
  but have never been able to reproduce it, so I'm only guessing, but
  maybe the timing was really unfortunate, and we switched back less
  than 10 ms before loading finished. We now remove the blur on every
  branch, just to be sure.
* adding a progress handler to a promise might not have any immediate
  effect, so when switching to an image which was loading, the progress
  bar reacted too late. We now store the progress state per thumbnail
  so it is always available immediately.
* the progress would animate from 0 to its actual state whenever we
  navigated to the image. The change on paging is now instant; the
  progress bar only animates when we are looking at it.
* switching quickly back and forthe between a loaded and a loading
  image resulted in the loading image becoming unblurred. This seems
  fixed now, I'm not sure why. Maybe the "skip on non-pending promise"
  logic affects it somehow.

Also removes some unused things / renames some things which were
confusing, and makes an unrelated fix in the image provider, which kept
amassing fail handlers.

Change-Id: I580becff246f197ec1bc65e82acd422620e35578
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/489
2014-05-01 21:09:28 +00:00
..
img Open MMV on hash change on file pages, add link 2014-04-10 09:34:01 +02:00
model Make License.isCc() really return booleans 2014-04-23 20:30:03 +00:00
provider Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
routing Add routing classes 2014-04-16 12:40:17 +02:00
ui Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
mmv.api.js Minor documentation tweaks 2014-02-21 00:45:06 +00:00
mmv.base.js Disable IE < 9 2014-04-01 09:53:24 +02:00
mmv.bootstrap.autostart.js Disable IE < 9 2014-04-01 09:53:24 +02:00
mmv.bootstrap.js Show caption on thumbnails 2014-04-23 01:29:30 +00:00
mmv.bootstrap.less Open MMV on hash change on file pages, add link 2014-04-10 09:34:01 +02:00
mmv.EmbedFileFormatter.js Replace current URL generation logic with routing classes 2014-04-16 12:51:38 +02:00
mmv.globals.less Create StripeButtons class, convert reuse button to use it 2014-04-03 23:13:12 +00:00
mmv.head.js Fixes various bugs in IE 2014-04-07 22:00:11 +00:00
mmv.HtmlUtils.js Miscellaneous fixes to truncatable text fields 2014-04-14 17:19:59 +02:00
mmv.js Refactor progressbar & blur handling 2014-05-01 21:09:28 +00:00
mmv.lightboximage.js Shuffle things around so original file sizes are easier to access 2014-04-10 01:56:38 +00:00
mmv.lightboxinterface.js Track more user actions 2014-04-22 10:20:36 +02:00
mmv.lightboxinterface.less Show metadata panel immediately. 2014-04-22 16:10:25 +00:00
mmv.loaded.css Wait for CSS to be truly loaded before opening the viewer 2014-02-24 19:13:04 +00:00
mmv.logger.js Track more user actions 2014-04-22 10:20:36 +02:00
mmv.mixins.less Fixes various bugs in IE 2014-04-07 22:00:11 +00:00
mmv.performance.js Update MultimediaViewerNetworkPerformance schema rev. 2014-03-24 04:17:57 +00:00
mmv.ThumbnailWidthCalculator.js Add share panel, replace reuse 2014-03-19 02:06:21 +00:00