Html.RenderPartial in de master page slows the site down
Hi,
I've got a basic site (FANOE) up and running. the homepage does load in just over 1,5 secs. With debug and trace i found that the rendiging of the navigation takes up most of the time.
RazorView.Render: ~/Views/Partials/MainNaviga...
1019.6
+79.3
RazorView.Render: ~/Views/Partials/BottomNavi...
402.2
+1100.3
when disabling the lines in the master page
@{ Html.RenderPartial("MainNavigation"); }
@{ Html.RenderPartial("BottomNavigation"); }
the site loads in 100ms. (0,1sec)
When I create a macro for the same cshtml files and use this on a page, the site loads fast. so it isn't the content of the partialviews which slows the website down.
Html.RenderPartial in de master page slows the site down
Hi,
I've got a basic site (FANOE) up and running. the homepage does load in just over 1,5 secs. With debug and trace i found that the rendiging of the navigation takes up most of the time.
when disabling the lines in the master page
@{ Html.RenderPartial("MainNavigation"); }
@{ Html.RenderPartial("BottomNavigation"); }
the site loads in 100ms. (0,1sec)
When I create a macro for the same cshtml files and use this on a page, the site loads fast. so it isn't the content of the partialviews which slows the website down.
Any idea's or suggestions for optimizing this?
Thanks in advance.
Regards,
Frans
is working on a reply...