The image gallery on a product front page in very buggy now and definitely not properly implemented.
It is loaded and initialized multible times for a single page, rewriting itself more and more.
Under a certain conditions it is not showing (blinking and hiding).
A quick and dirty fix is below.
The place to patch is:
Add the following code at the beginning of the function _create
:
var inner = this.element[0];
if (inner) {
if (inner.galleryInitialized) {
return;
}
inner.galleryInitialized = true;
}
It is very dirty fix, but gallery is initialized only once now and showing.