Hi there, I want to ensure the CMS Combine is done first then the SwiperJS can work to construct the slider. how can I do this?
Thanks!
Hi there, I want to ensure the CMS Combine is done first then the SwiperJS can work to construct the slider. how can I do this?
Thanks!
Hey @logins! You can use the CMS Combine callback to achieve this, the basic template is shown below
<script>
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
'cmscombine',
(listInstances) => {
console.log('cmsload Successfully loaded!');
// add Swiper init here
},
]);
</script>