Suggestions (Performance, and Autoplay)
Permalink Browser Info Environment
I have noticed better performance when following amending block with the following suggestion in the documentation:
on_start()
Fires automatically when a block is interacted with. If you're thinking of putting something in the block's __construct() method, use on_start() instead. It is run only when necessary and is less likely to be a performance drain.
Also adding in slideshow functionality is as simple as creating a template that runs the following function during the onImage event:
on_start()
Fires automatically when a block is interacted with. If you're thinking of putting something in the block's __construct() method, use on_start() instead. It is run only when necessary and is less likely to be a performance drain.
Also adding in slideshow functionality is as simple as creating a template that runs the following function during the onImage event:
function autoNext() { if (typeof(autoPlay_timer) == 'number') { clearTimeout(autoPlay_timer); } autoPlay_timer = setTimeout('$.asmillerGalleria.next();', 5000); }
Type: | Discussion |
---|---|
Status: | Archived |
I put his code snippet in the galleria.js file, right after this:
That worked for me. Now if I could just get the fades to be smoother, I'd have my slideshow all set :\
// fire the onImage function to customize the loaded image's features $.asmillerGalleria.onImage(_img,_wrapper.siblings('.asmillerGalleria_caption'),_asmillerGalleria_thumb);
That worked for me. Now if I could just get the fades to be smoother, I'd have my slideshow all set :\
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
Thanks