MediaWiki:Gadget-ImageAnnotator.js: Difference between revisions

Content deleted Content added
No edit summary
preventing traversing a page with more than 400 images (last three edits)
Line 1,567:
var all_imgs = bodyContent.getElementsByTagName('img');
 
// This prevents traversing the loop ona page with more than 400 images
// There are extreme cases like [[Emoji]] that high number of images can cause huge lag
// huge lag specially on Chrome
if (all_imgs.length > 400) {
// Simplypurging the array, simply a hack to avoid more indention
all_imgs = [];
}