Title: Reloading JS
Last modified: August 20, 2016

---

# Reloading JS

 *  Resolved [Luke](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * (@danceyrselfclean_admin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/reloading-js/)
 * I’m attempting to reload js files after the ajax and i’ve tried to follow the
   tutorial at [http://www.youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/](http://www.youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/)
   but I just can’t seem to figure it out.
 * I’m using custom JS for my audio player button. It’s just placed within a custom
   code section in my theme. Here’s my JS I need to reload.
 * <script type = “text/javascript”>
    jQuery(document).ready(function() { jQuery(“.
   fap-single-track”).click(function() { jQuery(this).toggleClass(‘playing’); jQuery.
   fullwidthAudioPlayer.toggle(); }); }); </script>
 * Is there any way I can edit this code to work with ajax or reload it afterwards?
 * [http://wordpress.org/extend/plugins/ajaxify-wordpress-site/](http://wordpress.org/extend/plugins/ajaxify-wordpress-site/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Manish Kumar Agarwal](https://wordpress.org/support/users/manishkrag/)
 * (@manishkrag)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/reloading-js/#post-3334114)
 * Sure put your above code in a separate file and then reload the file as mentioned
   in [http://www.youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/](http://www.youngtechleads.com/my-js-events-are-not-calling-after-loading-the-page-using-ajax/)
 * Thanks
 *  Thread Starter [Luke](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * (@danceyrselfclean_admin)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/reloading-js/#post-3334165)
 * Thanks, I had tried this way before but I also couldn’t get it to work. It turns
   out after copying the code over into WordPad it changed some of the characters
   breaking the code. After figuring this out I got it to work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Reloading JS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ajaxify-wordpress-site.svg)
 * [Ajaxify Wordpress Site(AWS)](https://wordpress.org/plugins/ajaxify-wordpress-site/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajaxify-wordpress-site/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajaxify-wordpress-site/)
 * [Active Topics](https://wordpress.org/support/plugin/ajaxify-wordpress-site/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajaxify-wordpress-site/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajaxify-wordpress-site/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Luke](https://wordpress.org/support/users/danceyrselfclean_admin/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/reloading-js/#post-3334165)
 * Status: resolved