Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have bootstrap tab on my page .which contain lot of HTML and Ajax from . which causes page rendering slowly . So i need to optimize this. i have three solution

1)Use the UserControl : dynamically load user control when click the tab button
2) server.trnasfer : make mulliple page and call by for server.trnasfer
3) respose.redirect : make mulliple page and call by response.redirect

so which is best approach?
Posted
Updated 2-Sep-15 20:03pm
v3
Comments
Mehdi Gholam 3-Sep-15 2:27am    
Try and see.
Schatak 3-Sep-15 2:59am    
Exactly
Sinisa Hajnal 3-Sep-15 2:58am    
Use ajax to load non-selected tabs in the background. That way, you don't have to load whole page immediately, just default tab.
F-ES Sitecore 3-Sep-15 4:42am    
None of those is going to affect your problem.
Anil Sharma1983 3-Sep-15 4:54am    
If you have other Approach ,Please share

Use Server.Transfer as it preserves server resources and avoids the unnecessary roundtrips to the server. It improves efficiency, but having trade offs as URL will remain consistent.
 
Share this answer
 
v2
See if you need all data at once then better to do one Ajax call and bind the data to the controls instead of many Ajax calls. Again make sure the Ajax calls are async otherwise it will be slow.

Best way to identify the bottle neck is to see the NET tab in developer tool of Brower to see which request is taking more time. Then you can optimize that service or web method.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900