• Resolved vks009

    (@vks009)


    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

    (@qtwrk)

    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

    (@vks009)

    @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.