This script in not compatible with jquery 3 : <p>This script works fine when I include jquery 1.8.3 but it won't work with jquery 3.2.1 what should I change? <a href="https://docs.sonhlab.com/protect-javascript-from-copying/" rel="nofollow noreferrer">here</a> the link where it comes from</p>

<pre><code>    &lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Demo of Protecting Javascript Code From Copying&lt;/title&gt;

&lt;!-- jQuery Library 1.8.3 --&gt;
&lt;script type="text/javascript" src="js/jquery/jquery.min.183.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
$(window).load(function() {
  $.ajax({
    url: 'js/js.php',
    type:'POST',
    cache: false,
    success: function(data){
      if(data){
        $('body').append(data);
      }
    }
  }); 
})
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
  Demo of Protecting Javascript Code From Copying.
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
