MediaWiki:Gadget-ImageAnnotator.js: Difference between revisions

Content deleted Content added
mNo edit summary
No edit summary
Line 1,566:
if (bodyContent) {
var all_imgs = bodyContent.getElementsByTagName('img');
 
// This prevents traversing the loop on page with more than 400 images
// There is extreme cases like [[Emoji]] that high number of images cause huge lag
// specially on Chrome
if (all_imgs.length > 400) {
// Simply a hack to avoid more indention
all_imgs = [];
}
 
for (var i = 0; i < all_imgs.length; i++) {
// Exclude all that are in img_with_notes or in thumbs. Also exclude all in galleries.