https://bugzilla.wikimedia.org/show_bug.cgi?id=37997
Web browser: ---
Bug #: 37997
Summary: Intervall not cleared: 2 Intervalls per file
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: UploadWizard
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
Simply test it: During the whole upload process 2 intervalls *per file* are not
cleared:
var se = window.setInterval;
window.setInterval = function (fn, t) {
return se(function() {
console.log(fn, t);
fn();
}, t)
};
If you upload 50 files, this means 100 events fire (all the time) within 500ms,
executing a function that is computing some numbers from the DOM (object
position) and setting CSS. Not good for old machines and slow browsers.
Culprit:
/extensions/UploadWizard/resources/mw.UploadWizardUploadInterface.js
moveFileInputToCover: function( selector ) {
//...
this.moveFileInputInterval = window.setInterval(function() {
update();
}, 500);
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l