Completely remove Javascript
<p>I have a website that has a fixed menu, header, etc. and loads the main content area via AJAX based on the menu clicks.<br>
These "pages" rely on a lot of Javascript and CSS which are individual for each page. Since a user can potentially visit many pages, I want to unload the page-specific JS and CSS. The CSS was straight-forward, but removing the <code>&lt;script&gt;</code> tags does not remove the loaded Javascript (I can still call functions defined in it).<br>
How can I really "remove" the JS? I don't want the memory overhead, or to have to worry about name clashes between pages.</p>
