Title: Reinit/Reload function?
Last modified: March 15, 2024

---

# Reinit/Reload function?

 *  [outhands](https://wordpress.org/support/users/outhands/)
 * (@outhands)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/reinit-reload-function/)
 * **We use a self-made WordPress theme that behaves like a SPA through Swup.js**
 * The problem is that the plug-in looks at whether the page uses a Gutenslider 
   and then adds various JavaScript files & functions in the footer.
 * Because [Swup.js](https://swup.js.org/) does not actually reload the page, we
   often experience plug-ins that no longer function properly. By placing an init
   function in an eventListener, the plug-ins often work correctly again.
 * `swup.hooks.on('content:replace', () => { }`
 * I currently have an empty Gutenslider in the footer so that the necessary JS 
   files are present on all pages.
 * Now I’m just looking for a function that I can call to initialize the Gutenslider.
   Does anyone know what function I can use for this?
 * We use** **_Gutenslider v6.1.0_
 * Thanks for contributing ideas!

The topic ‘Reinit/Reload function?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gutenslider_814abc.svg)
 * [WordPress Slider Block Gutenslider](https://wordpress.org/plugins/gutenslider/)
 * [Support Threads](https://wordpress.org/support/plugin/gutenslider/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenslider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenslider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenslider/reviews/)

## Tags

 * [initialize](https://wordpress.org/support/topic-tag/initialize/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [spa](https://wordpress.org/support/topic-tag/spa/)

 * 0 replies
 * 1 participant
 * Last reply from: [outhands](https://wordpress.org/support/users/outhands/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/reinit-reload-function/)
 * Status: not resolved