Page MenuHomePhabricator

<gallery> tag generates unnecessary triply-nested divs, renders images very slowly
Closed, DeclinedPublic

Description

The <gallery> tag is failing across mediawiki instances on laptop.org, with a couple visible effects:

  • Individual images show up inside triply-nested bordered divs.
  • Rendering is very slow. Categories with hundreds of images render pages verrrry slowly.

We've looked into the html without diagnostic success...


Version: 1.13.x
Severity: normal
URL: http://wiki.laptop.org/go/Images

Details

Reference
bz16840

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:26 PM
bzimport set Reference to bz16840.
bzimport added a subscriber: Unknown Object (MLST).

This is still the case with updates to ImageMagick. We will update to 1.15 soon and try importing into a clean install to see if there is any change.

Gallery DOM was rewritten. And if you set the CSS to create a border around various elements, it will do so.

div.gallerybox div.thumb {

text-align: center;
border: 1px solid #ccc;
margin: 2px;

}

Just remove set border: none, and it's gone