I have this following table:

This is basically loaded using foreach in .cshtml with <tr><td> append. When I click on a folder, it should get me the contents and reload the table with new contents. I use .ajax to get the contents, and use window.location.href to reload the page. However it takes really lot of time to reload the page using location.href. Also the performance of page is poor, since it again calls the server side code on location.href. What do you suggest for such a situation?