I'm setting up a simple data scraper that pulls the source code from an external URL (I have accounted for CORS) using .load().
The page that I'm loading however has a ton of scripts that also try to execute on my page when .load() runs. Is there any way to invoke .load() without all of the external scripts also loading and running? Or maybe I can somehow stop the scripts from running once .load() has been invoked?
-edit-
Here is my current code.
<input id = "url" type = "text" size = "100"></input>
<button id = "load">Load</button>
$('#load').on('click', function() {
if ($('#url').val())
$('#html').load($('#url').val());
else
alert('No URL entered.');
});