The jQuery code that adds HTML to the DOM always issues tags <script>. He launches them and then drops them.
An exception to this behavior is when you use $ .load () with a hack that allows you to load a page fragment:
$.load("http://something.com/whatever #stuff_I_want", function() { ... });
In this case, the scripts are deleted and not evaluated / executed.
source
share