@goldsky : this is the snippet call
[!easy2? &slideshow=`smoothgallery` &ss_config=`zoom` &ss_indexfile=`assets/libs/slideshows/smoothgallery/new_smoothgallery.php` &w=`75` &h=`75` &ss_w=`480` &ss_h=`290` &ss_limit=`none` &gid=`6`!]
where "new_smoothgallery.php" is the same as the original, with the exception of the "zoom" config block, which looks like this :
if ($ssParams['ss_config'] == 'zoom') {
// $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2.1-core-yc.js');
// $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2-more.js');
// $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/ReMooz.js');
// $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.js');
// $modx->regClientStartupScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.transitions.js');
// $modx->regClientStartupHTMLBlock('
$modx->regClientScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2.1-core-yc.js');
$modx->regClientScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/mootools-1.2-more.js');
$modx->regClientScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/ReMooz.js');
$modx->regClientScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.js');
$modx->regClientScript(MODX_BASE_URL . 'assets/libs/slideshows/smoothgallery/scripts/jd.gallery.transitions.js');
$modx->regClientHTMLBlock('
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($(\'myGallery\'), {
timed: false,
useReMooz: true,
defaultTransition: "fadeslideleft",
embedLinks: false
});
}
window.addEvent(\'domready\',startGallery);
</script>
');
}
I realize that the above mod to the gallery accomodates a sliding transition. But when I put in a bunch of "echo microtime(true)" calls, I found that most of the time was being consumed at the top of this file, in this call
$ssFiles = $this->_getSlideShowFiles();
Drilling down into that further, I found that it was the ss_img_src=generated condition that was accounting for a lot of the time. When I either explicitly set the parameter to "original" or change the default setting in the module settings, things seemed to improve.
BTW, the galleries are about 8-12 images and each is maybe 70+kb in size.
Matt