i have two links
<a href="page1.html">page 1</a>
<a href="page2.html">page 2</a>
<div id="content"> </div>
1. I use JQuery to load them into a Div when the links are clicked.
$('#content').load('page1.html');
2. When the second link is clicked I empty the div
$('#content').html('');
3. and load the second file in;
$('#content').load('page2.html');
The problem, page1.html has alot of images in it, even after the second link is clicked and the #content div is emptied, the browser keeps downloading the images from page1.html and this slows down the request to page2.html significantly.
How can i stop the content from the first load() from making requests to the browser and speed up the page response?
Thank you infinity!