mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 12:53:24 +00:00
7afbc5ce92
* 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
78 lines
1.1 KiB
JavaScript
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
|
|
*/
|