I have an odd bug that I can't seem to snuff out. I'm not sure if this forum can be used for diagnoses but I need help figuring out the cause.The site is using a custom theme that was installed by a previous developer no longer on the project. The current Magento CE version is 2.1.5 but the issue existed on 2.1.0.
If you click the link below, you'll see the product thumbnail does not update with the color. The color swatch is highlighted, if you click [Add to Cart] the correct color is added and if you refresh the page the thumbnail updates correctly. So, this is just the thumbnail not updating on the initial load. Also, if you click the second link below after clicking the first, the thumbnail will update correctly. So again, the problem is only with the initial load. I assume the issue is either with Fotorama or maybe JQuery in general but I can't seem to find it. Any insights or suggests would be greatly appreciated.
I guess it took me posting the issue to find a solution. I'm not sure where I got the #attribute=value syntax and although I thought the hash was odd, I figured it must be Magento specific. I never thought to try it with a standard ? instead. The link below has the thumbnail update working just fine.