Title: Why javascript has been disabled ?
Last modified: August 12, 2020

---

# Why javascript has been disabled ?

 *  Resolved [vks009](https://wordpress.org/support/users/vks009/)
 * (@vks009)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/why-javascript-has-been-disabled/)
 * I used the following code in the header.php , with the new wordpress update, 
   this code no longer works
    Why? What should I do? this code for , site.com to
   nullrefer.com/?site.com **Disabling the LiteSpeed Cache plugin solves the problem
   LiteSpeed Cache Why is it broken?
 *     ```
       <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
       <script>
       $(function(){
           $('a').each(function() {
       						 var str = this.href;
       						 var n = str.search("arzunkadeh.com");
       						 if(n == -1){
               $(this).attr('href', 'https://nullrefer.com/?' + this.href);}
           });
   
       });
       </script>
       ```
   

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/why-javascript-has-been-disabled/#post-13253407)
 * Hi,
 * Did you enable inline jS defer/minify ?
 * if so , please try disable them , purge all and see how it goes ?
 * Best regards,
 *  Thread Starter [vks009](https://wordpress.org/support/users/vks009/)
 * (@vks009)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/why-javascript-has-been-disabled/#post-13254727)
 * [@qtwrk](https://wordpress.org/support/users/qtwrk/)
    i disabled load js deffered
   and This problem solved Please fix this problem in future LiteSpeed Cache updates
   so that load js deffered can be used Because this problem did not exist before
   the WordPress update

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

The topic ‘Why javascript has been disabled ?’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vks009](https://wordpress.org/support/users/vks009/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/why-javascript-has-been-disabled/#post-13254727)
 * Status: resolved