Page Life Cycle: Optimizing Page Load Performance - akumina/AkuminaTraining GitHub Wiki
Applies to
Akumina Foundation 3.4.0.0 and later
Overview
- Turning Off Interchange Query Key Validation Step
- Turning Off User Targeting
- Turning Off Init Tray
Overview
The Interchange Query Key Validation Step check ensures that there is a valid Interchange Query Key within the DigispaceConfigurationIDS_AK. However, this value is only set on initial deployment of an Akumina Foundation Site or whenever the configuration settings are updated, making the repeated checking of an already verified value unnecessary. Therefore, a quick way to improve page load performance is to deactivate this step. We do so below.
Walkthrough
Within your digitalworkplace.custom.js file insert the following block to turn off the Interchange Query Key Validation Step.
var LoaderConfiguration = LoaderConfiguration || {
}
if ((typeof LoaderConfiguration.Custom) === 'undefined') {
//Deactivate steps within the LoaderConfiguration.Custom Object
LoaderConfiguration.Custom = {
Init: function (config) {
Akumina.AddIn.Logger.WriteInfoLog('LoaderConfiguration.Custom.Init');
Akumina.Digispace.ConfigurationContext.CONSTANTS.LOADER_STEPS_ENABLE_VALIDATEINTERCHANGEKEY = false;
}
}
}
Overview
User Targeting is a large component of the out-of-the-box Akumina Foundation Site and takes up a large segment of the Page Life Cycle. Therefore, sites that are not utilizing User Targeting should deactivate the following out-of-the-box Page Life Cycle steps to improve Page Load Performance.
- Fetching User Properties
- Load Dashboard Widgets
- Initializing Rail
Walkthrough
Within your digitalworkplace.custom.js file insert the following block to turn off the steps used by the User Targeting Feature.
var LoaderConfiguration = LoaderConfiguration || {
}
if ((typeof LoaderConfiguration.Custom) === 'undefined') {
//Deactivate steps within the LoaderConfiguration.Custom Object
LoaderConfiguration.Custom = {
Init: function (config) {
Akumina.AddIn.Logger.WriteInfoLog('LoaderConfiguration.Custom.Init');
//Deactivate Fetching User Properties Step
Akumina.Digispace.ConfigurationContext.CONSTANTS.LOADER_STEPS_ENABLE_FETCHUSERPROPERTIES = false;
}
}
}