Sitecore 8 Dev and SPEAK Pre-Compilation

Bhavik Patel • 11/23/2015

If you’re an avid Sitecore developer, you’ll quickly realize that the initial load times for Sitecore 8 are a bit longer than in previous versions of Sitecore. This is primarily due to a new addition to Sitecore’s “initialize” pipeline, namely “PrecompileSpeakViews”. As the name suggests, this processor essentially goes through all of the SPEAK views and dialogs and precompiles them, so that they load up faster when requested. That’s great for an end-user of Sitecore, but is a little cumbersome for developers, especially considering that you have to go through the wait every time you compile your code (because the application pool has to recycle every time you compile).

Of course, with all the great configuration power of Sitecore, all is not lost. You can simply comment out the processor from the appropriate configuration files. The side-effect of doing this is that you now have to wait slightly longer for the SPEAK views and dialogs to load when you first request them. A happy compromise for development purposes in my opinion. You’ll find the processor in two configuration files:

  • App_Config\Include\Sitecore.Speak.config
  • App_Config\Include\ContentTesting\Sitecore.ContentTesting.config

The processor configuration looks like this:

<processor type="Sitecore.Pipelines.Initialize.PrecompileSpeakViews, Sitecore.Speak.Client">
  …
</processor>

Happy faster Sitecore 8 coding!

Bhavik Patel

Sitecore Technical Architect

Bhavik Patel is a certified Sitecore developer who has held Sitecore Most Valuable Professional (MVP) status since 2015. He has more than a decade of experience with enterprise-class Sitecore and Microsoft .NET framework development, including Sitecore integration with SharePoint and Business Intelligence solutions. He leads our Sitecore development practice, engineering enterprise-class Sitecore implementations for Government and commercial sector clients. He's an expert at using Sitecore Helix Framework to create re-usable architectures, streamline the integration of front-end development and provide the foundation for SEO-optimized Sitecore marketing websites.

Explore topics:

Other Blog Posts from Bhavik Patel