To improve the load time of customer self service web pages you can use the application to minimise the style sheet (CSS) and JavaScript files at run time.
This uses Razor technology.
To bundle and minify JavaScript files
@using System.Web.Optimization; @{ var cvScripts = new ScriptBundle("~/TemplateBundles/CVScripts"); } ... Other HTML here @{ cvScripts.Include("~/Scripts/cv.util.js"); } ... Other HTML here @ { BundleTable.Bundles.Add(cvScripts); @Raw(@Model.TemplateUtil.ScriptRender("~/TemplateBundles/CVScripts")) } |
To enable this functionality the template needs to be a version 4 template |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.