Aha, here's a solution - avoid SqueezeBox calls! Instead, I load the content in manually using standard a MooTools AJAX call. This doesn't turn on the usual wait spinner, but I expect that can be fixed.
// Let's load page in AJAX manually; reopening with open() or
// setContents() appears to cause double or glitchy animations.
var myRequest = new Request.HTML(
{
url: url,
method: 'get',
evalScripts: true,
update: $( 'sbox-content' )
}
).send();
// @todo If no size change is needed don't run this
// to avoid glitchy animation
SqueezeBox.resize(
{ x: 500, y: 500 },
false
);
Note that I'm using evalScripts: true
, so that any JavaScript in the loadable snippet is run just as if I had used SqueezeBox.open()
.