The gallery I used this on has many large images that can (especially depending on the connection) delay the load
event well beyond time to interactive. That makes it likely that clicking an image will navigate to it directly instead of the desired (scripted) behavior.
I noticed that the baguetteBox readme says:
Note: if you import baguetteBox using the <script> tag, remember to run it after the document has loaded:
That's probably just the simplified general recommendation. I modified this plugin to execute baguetteBox.run
immediately and it works well.
Thanks for this straightforward plugin!