I have a Web app which is a monitoring tool. So someone it's going to keep it open on the browser all the day long. The problem is I'm refreshing the index page each 3 min:
var auto_refresh = setTimeout( function () { $('#page-body').load('/Monitor/Index').fadeIn("slow"); }, 180000); And every time the app refreshes itself, it's loading 3 javascripts which I'm invoking on my layout:
<script type="text/javascript" src="@Url.Content("~/Scripts/script-core-v1.0.js")"> </script> <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.dataTables.js")"> </script> <script type="text/javascript" src="@Url.Content("~/Scripts/jquery.sparkline.js")"> </script> So, my browser keeps getting bigger and bigger every time the app refreshes, and I think the main reason are those scripts.
How can I avoid this problem? Thanks!