The slowness is caused by having a large data URI in an inline style for the image containers.
I tried changing the setSize function to put the background image in a style element instead, by replacing the line that sets el.style.backgroundImage with the code below:
The slowness is caused by having a large data URI in an inline style for the image containers.
I tried changing the
setSize
function to put the background image in a style element instead, by replacing the line that setsel.style.backgroundImage
with the code below:This fixed it in Firefox, and also made it slightly smoother in Chrome as well.