Re-trigger embed code after pagination loading content

Hi,

I’m having issues with custom code within a collection item not running after pagination. I’ve contacted webflow support and they suggest i get help with code that can reload my code snippet after pagination reload. Here’s the reply from support,

"In Webflow, interactions and other JavaScript functions typically work on page load. However, when pagination is used and elements on the page are replaced without reloading it, these functions need to be restarted each time the page content changes.

To address this issue, you’ll need to ensure that the functions within the collection items are restarted whenever the page content changes. This might involve manually triggering these functions again after the pagination operation is completed or finding a way to bind these functions to elements dynamically so that they are applied to new elements loaded via pagination."

Does any one know how to achieve that? Thanks a lot!


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Just wanna bump it as it seems no one has a solution yet? Please lemme know if there’s more info i can share to explain my issue here. Thanks…

Webflow pagination involves a page switch, not a fetch/replace of content.
Are you using Finsweet’s CMS Load pagination?

Finsweet CMS Load has an API that fires events as new items are loaded, that’s likely what you’re looking for.

Hi can someone help me why my grid behaving like this. I have share my website link below. (Webflow - Little's Exceptional Site)

thanks man, i have looked at it a bit and have seen the solutions provided by finsweet. just dunno what exactly to code it and where to put the code…

Yeah, if you want to take that approach, using FS Filter + FS Load, you’ll need to learn some coding, or find a dev. Their API examples are minimalistic. I do that type of work, if you need help you can direct message me for rates.

The other option is to use use native pagination, so that you don’t have your dynamic load issue.

hey man, thanks for your response. I’m actually using finsweet filter and load already. Do you mean that finsweet is stopping my custom code within my collection item to be disabled when pagination happens? I would love to have someone to have a look at it… let me pm you for rates. thanks.

In general, no- FS Load brings new elements into the page, but those elements didn’t exist before when your script ran, so your script hasn’t done its work with them.

The details depend on your specific programming setup and goals.