# Re-trigger embed code after pagination loading content

**URL:** <https://forum.finsweet.com/t/re-trigger-embed-code-after-pagination-loading-content/2930>\
**Category:** Attributes\
**Tags:** cmsload\
**Created:** [May 21, 2024, 1:44am UTC](https://forum.finsweet.com/t/re-trigger-embed-code-after-pagination-loading-content/2930 "2024-05-21T01:44:31Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [June 11, 2024, 3:24pm UTC](https://forum.finsweet.com/t/re-trigger-embed-code-after-pagination-loading-content/2930/21 "2024-06-11T15:24:20Z")

</div>

Sure! Just remove the last code block, which is the one below.

```js
  filterInstance.listInstance.on('switchpage', (targetPage) => {
    if (window.wavesurferBottom.isPlaying()) {
      globalPlayBtn.src =
        'https://assets-global.website-files.com/61f6c90352d29627cd69a979/661cdf745c4247757e19b954_play-buttton.png';
      window.wavesurferBottom.pause();
    } else {
      console.log('No audio playing');
      window.wavesurferBottom.pause();
    }
  });

```

My bad! I added this in case you were also going for that functionality

---

<div class="post-metadata">

**Author:** ![lincoln](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lincoln](https://forum.finsweet.com/u/lincoln)\
**Post date:** [June 11, 2024, 3:46pm UTC](https://forum.finsweet.com/t/re-trigger-embed-code-after-pagination-loading-content/2930/22 "2024-06-11T15:46:46Z")

</div>

Thanks a lot! It works! Also, I switched to infinite and it solved the problem too. Thank you so much!

[Previous page](https://forum.finsweet.com/t/re-trigger-embed-code-after-pagination-loading-content/2930.md?page=1)
