I'm attempting to write a google chrome extension, which is effectively crawling a page, since chrome extensions allow cross-origin XHR requests.
However, when it does it, it also tries to load EVERY SINGLE IMAGE on the page. This doesn't actually result in the images loading, as the paths are all relative, but it does result in the console becoming clogged with errors.
My question is, can I do a jQuery.get()
to request a webpage, without accidentally trying to preload all the images?
EDIT
Code looks like this:
$.get(
url,
function parseData(data) {
console.log("Images are automatically preloaded once " +
"this function exits, for some reason");
},
'html'
);