Exemplo n.º 1
0
        private static void BuildSpeedy(SpeedyLayoutModel model)
        {
            var speedyLinks = GenerateDeferedLinks(new ThemesProvider());

            model.AssetLinks       = speedyLinks;
            model.VanillaJavasript = GetVanillaJavascript();

            model.SpeedyJsEnabled  = SpeedyGenerationSettings.IsCriticalJavascriptEnabledAndPossible(Sitecore.Context.Item);
            model.SpeedyCssEnabled = SpeedyGenerationSettings.IsCriticalStylesEnabled(Sitecore.Context.Item);

            LoadCssIntoModel(model, speedyLinks);
        }