mediawiki-extensions-Multim.../docs/external.js
Gergő Tisza 7afbc5ce92 Use provider XHR information in performance metrics + several fixes
* more robust method of obtaining URL
* decouple performance logging from providers (mostly)
* ignore fake XHR object which jQuery returns for JSONP requests
* guard for CORS requests - apparently Chrome refuses to return
  certain information even with an Allow-Origin: * response header.
* Resource Timing is limited to 150 results, which causes fake
  misses in debug mode. There is an API to increase the limit
  but it is not implemented in Chrome. I am calling it nevertheless,
  maybe IE understands it (it is present in the MSDN docs at least).

This seems to work for AJAX, CORS, JSONP, image AJAX; CORS requests
return 0 for a lot of values, per spec a Timing-Allow-Origin: *
header might help that.

Change-Id: I8353858022f51a7e70774e65513d0fa2554a5064
2014-02-19 00:38:27 +00:00

78 lines
1.1 KiB
JavaScript

/**
* @class mw
* @singleton
* <https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw>
*/
/**
* @class mw.Api
* <https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api>
*/
/**
* @class mw.Title
* <https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Title>
*/
/**
* @class mlb
* @singleton
* Upstream multilightbox object
*/
/**
* @class mlb.LightboxImage
* Upstream object to represent an image
*/
/**
* @class mlb.LightboxInterface
* Upstream object that represents the lightbox interface
*/
/**
* @class mlb.MultiLightbox
* Upstream controller object
*/
/**
* @class HTMLElement
* An HTML element.
*/
/**
* @class HTMLImageElement
* @extends HTMLElement
* An HTML <img> element.
*/
/**
* @class XMLHttpRequest
* An AJAX request
*/
/**
* @class jQuery
* A jQuery object.
*/
/**
* @class jQuery.Promise
* A jQuery promise object.
*/
/**
* @class jQuery.Deferred
* A jQuery deferred object.
*/
/**
* @class jQuery.Event
* An event object with extra jQuery data.
*/
/**
* @class jqXHR
* An XMLHttpRequest object wrapped by jQuery
*/