How to Improve Performance for Navigations
How to Improve Performance for Navigations
Let's say you have the following scenario:
If you have a static navigation, you can use the following procedure to increase performance dramatically:
The first time the snippet is used, it will load the Navigation and then cache the result and use that cached result for every subsequent page request. Once the cache expires, it will load the Navigation one more time, and then again keep using the cached version. On one of our client sites, we reduced page render times from 3 seconds to 0.5 seconds, a 600% improvement! If your navigation does not change often at all, you can improve performance even further by replacing the AssetProxy macro in the snippet with the HTML from the output of the Navigation. The downside here is that you will have to manually update the Snippet when the Navigation changes, but it will be extra special fast. You can also use the GroupText macro here to make admin-only menu items. |

