mediawiki-extensions-Popups/resources/ext.popups
Sam Smith cbdcf7d353 Consistently delay showing previews
While I1bf953b2 fixed the typo in FETCH_START_DELAY, it didn't do
anything to address the inconsistency in the time it takes to render a
preview (preview delay).

If the gateway result resolves before the target preview delay (500 ms)
is met, then delay dispatching the FETCH_END action until it is. If,
however, the gateway result resolves after the target preview delay,
then dispatch the FETCH_END action immediately.

Supporting changes:
* Expose the fetch action to ease testing it and to help tidy up the
  mw.popups.actions.linkDwell tests.

Change-Id: Idf02343a0417cfbb33093a81d97ecebc5c1c7379
2017-01-09 15:00:02 -08:00
..
changeListeners Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
images Move settings images and styles to ext.popups/ 2016-12-13 10:45:51 +01:00
reducers Add reading depth 2016-12-21 15:08:20 -05:00
styles Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
templates Move settings template to ext.popups 2016-12-13 11:33:18 +01:00
actions.js Consistently delay showing previews 2017-01-09 15:00:02 -08:00
boot.js Add reading depth 2016-12-21 15:08:20 -05:00
changeListener.js Make API request after 500 ms 2016-11-17 13:20:11 +00:00
checkin.js Add reading depth 2016-12-21 15:08:20 -05:00
counts.js Include user's preview count in BOOT action 2016-12-12 13:01:44 +00:00
gateway.js Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
index.js Add footer link change listener 2016-11-16 15:20:34 +00:00
isEnabled.js Hygiene: Make mw.popups#isEnabled return boolean 2016-12-16 10:59:47 +00:00
pageVisibility.js Add reading depth 2016-12-21 15:08:20 -05:00
processLinks.js Hygiene: #processLinks Only use global variables at the edges 2016-11-30 17:01:49 +00:00
renderer.js Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
schema.js Initial Popups logging implementation 2016-12-12 13:01:44 +00:00
settingsDialog.js Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
userSettings.js Hygiene: Remove experiment-related code 2016-12-16 10:59:47 +00:00
wait.js Hygiene: Correct return value type on mw.popups.wait 2016-11-30 13:50:13 +01:00