javascript - jquery .load() does not load external JS -
i loading external content div element using jquery.load() without selector. if content loaded has embedded js, js works expected. however, if content includes script tag src=path-to-js-code js-code not loaded. am correct in observation , if there solution other embedding js in loaded content? edit : few clarifications , observations: to load content using $("#divid").load("path/to/content.php", callbackfunction(response, status, xhr) { error checking , post processing code }); changing load code to: $.get("path/to/content.php", callbackfunction(response, status, xhr) { error checking $("#divid").html(response); post processing }); does not seem change behavior (more on behavior below) i have not tried parsing response retreive script src , using getscript() . now more on behavior... using firefox, seems external js loaded if has been 2 min last load. not see attempt in firebug unless refresh 2m afte...