Title: Ajax kills javascript
Last modified: November 25, 2021

---

# Ajax kills javascript

 *  Resolved [daynese1](https://wordpress.org/support/users/daynese1/)
 * (@daynese1)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ajax-kills-javascript/)
 * Hello,
 * Under my page I use javascript to handle to filter popup on mobilescreen.
    So
   my problem is that, when Ajax request gets executed it refreshes the DOM removes
   the properties I added with javascript and prevents the javascripts from any 
   further execution.
 * can you check what causes that?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fajax-kills-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * (@stepasyuk)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/ajax-kills-javascript/#post-15112652)
 * Hello [@daynese1](https://wordpress.org/support/users/daynese1/)
 * It is known problem and you have to re-init your JavaScript after executing “
   ready” trigger.
 * For example
 *     ```
       jQuery(document).on('ready', function(e){
           // your useful code, e.g. jQuery("[data-fancybox]").fancybox();
       });
       ```
   
 * Here is more details about the problem – [https://filtereverything.pro/resources/ajax-related-problems/](https://filtereverything.pro/resources/ajax-related-problems/)

Viewing 1 replies (of 1 total)

The topic ‘Ajax kills javascript’ is closed to new replies.

 * ![](https://ps.w.org/filter-everything/assets/icon-256x256.png?rev=3487105)
 * [Filter Everything — WordPress & WooCommerce Filters](https://wordpress.org/plugins/filter-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/filter-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/filter-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/filter-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/filter-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/filter-everything/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [stepasyuk](https://wordpress.org/support/users/stepasyuk/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/ajax-kills-javascript/#post-15112652)
 * Status: resolved