I am developing a single page application. My layout page looks like
<html>
   <head>
      <title>My page</title>
   </head>
   <body>
      <div id="page1"></div>
      <div id="page2"></div>
   </body>
</html>
I need to load two partial views in each div at different instances.
With each partial view, I want to load a javascript file and after removal of that partial view I wanna remove that respective js file too. Is it possible?
 
     
    