When we install the Sitecore instance on local, the first load is slow. After each code deploy also, it takes a while for the Sitecore instance to load and experience editor to come up. For us, the load time for Sitecore instance on local machines was around 4 minutes. We started looking for ways to minimize it and found that if we update our Web.config to use Roslyn compiler and include the relevant Nugets into the project, our load times will improve.
We followed the simple steps -
- Go to the Project you wish to add the NuGet package and right click the project and click 'Manage NuGet Packages'.
- Make sure your 'Package Source' is set to nuget.org and go to the 'Browse' Tab and search Microsoft.CodeDom.Providers.DotNetCompilerPlatform. Install whichever version you desire, make sure you note which version you installed. You can learn more about it here.
- After installation, deploy your project, make sure the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll make it into your Sitecore bin folder.
- Once that is done, open your Sitecore's Web.config and add the following to the bottom of your Web.config file -
Hi. I sent email to you and also sent linkedin request. Kindly check as its urgent. Thanks
ReplyDelete