public static void Configure(WebMarkupMinConfiguration configuration) { configuration.AllowMinificationInDebugMode = true; configuration.AllowCompressionInDebugMode = true; DefaultCssMinifierFactory.Current = new MsAjaxCssMinifierFactory(); DefaultJsMinifierFactory.Current = new MsAjaxJsMinifierFactory(); IHtmlMinificationManager htmlMinificationManager = HtmlMinificationManager.Current; HtmlMinificationSettings htmlMinificationSettings = htmlMinificationManager.MinificationSettings; htmlMinificationSettings.RemoveRedundantAttributes = true; htmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; htmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IXhtmlMinificationManager xhtmlMinificationManager = XhtmlMinificationManager.Current; XhtmlMinificationSettings xhtmlMinificationSettings = xhtmlMinificationManager.MinificationSettings; xhtmlMinificationSettings.RemoveRedundantAttributes = true; xhtmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; xhtmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IXmlMinificationManager xmlMinificationManager = XmlMinificationManager.Current; XmlMinificationSettings xmlMinificationSettings = xmlMinificationManager.MinificationSettings; xmlMinificationSettings.CollapseTagsWithoutContent = true; IHttpCompressionManager httpCompressionManager = HttpCompressionManager.Current; httpCompressionManager.CompressorFactories = new List <ICompressorFactory> { new DeflateCompressorFactory(), new GZipCompressorFactory() }; }
/// <summary> /// Constructs a instance of Web Forms page with support of HTML minification and HTTP compression /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> /// <param name="compressionManager">HTTP compression manager</param> public MinifiedAndCompressedHtmlPage(WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager, IHttpCompressionManager compressionManager) : base(new MinifiedHtmlComponent(configuration, minificationManager), new CompressedComponent(configuration, compressionManager)) { }
public static void Configure(WebMarkupMinConfiguration configuration) { configuration.AllowMinificationInDebugMode = true; configuration.AllowCompressionInDebugMode = true; IHtmlMinificationManager htmlMinificationManager = HtmlMinificationManager.Current; HtmlMinificationSettings htmlMinificationSettings = htmlMinificationManager.MinificationSettings; htmlMinificationSettings.RemoveRedundantAttributes = true; htmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; htmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IHttpCompressionManager httpCompressionManager = HttpCompressionManager.Current; httpCompressionManager.CompressorFactories = new List <ICompressorFactory> { new GZipCompressorFactory(), new DeflateCompressorFactory() }; }
public static void Configure(WebMarkupMinConfiguration configuration) { configuration.AllowMinificationInDebugMode = true; configuration.AllowCompressionInDebugMode = true; DefaultLogger.Current = new ThrowExceptionLogger(); DefaultCssMinifierFactory.Current = new MsAjaxCssMinifierFactory(); DefaultJsMinifierFactory.Current = new MsAjaxJsMinifierFactory(); IHtmlMinificationManager htmlMinificationManager = HtmlMinificationManager.Current; HtmlMinificationSettings htmlMinificationSettings = htmlMinificationManager.MinificationSettings; htmlMinificationSettings.RemoveRedundantAttributes = true; htmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; htmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IXhtmlMinificationManager xhtmlMinificationManager = XhtmlMinificationManager.Current; XhtmlMinificationSettings xhtmlMinificationSettings = xhtmlMinificationManager.MinificationSettings; xhtmlMinificationSettings.RemoveRedundantAttributes = true; xhtmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; xhtmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IHttpCompressionManager httpCompressionManager = HttpCompressionManager.Current; httpCompressionManager.CompressorFactories = new List <ICompressorFactory> { new BrotliCompressorFactory(new BrotliCompressionSettings { Level = 1 }), new DeflateCompressorFactory(new DeflateCompressionSettings { Level = CompressionLevel.Fastest }), new GZipCompressorFactory(new GZipCompressionSettings { Level = CompressionLevel.Fastest }) }; }
public static void Configure(WebMarkupMinConfiguration configuration) { configuration.AllowMinificationInDebugMode = true; configuration.AllowCompressionInDebugMode = true; DefaultCssMinifierFactory.Current = new MsAjaxCssMinifierFactory(); DefaultJsMinifierFactory.Current = new MsAjaxJsMinifierFactory(); IHtmlMinificationManager htmlMinificationManager = HtmlMinificationManager.Current; HtmlMinificationSettings htmlMinificationSettings = htmlMinificationManager.MinificationSettings; htmlMinificationSettings.RemoveRedundantAttributes = true; htmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; htmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; IXhtmlMinificationManager xhtmlMinificationManager = XhtmlMinificationManager.Current; XhtmlMinificationSettings xhtmlMinificationSettings = xhtmlMinificationManager.MinificationSettings; xhtmlMinificationSettings.RemoveRedundantAttributes = true; xhtmlMinificationSettings.RemoveHttpProtocolFromAttributes = true; xhtmlMinificationSettings.RemoveHttpsProtocolFromAttributes = true; }
/// <summary> /// Constructs a instance of HTTP module for HTML minification /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> public HtmlMinificationModule( WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager) : base(configuration, minificationManager) { }
/// <summary> /// Constructs a instance of Web Forms page with support of HTML minification /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> public MinifiedHtmlPage(WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager) : base(new MinifiedHtmlComponent(configuration, minificationManager)) { }
/// <summary> /// Constructs a instance of master page with of HTML minification and HTTP compression /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> /// <param name="compressionManager">HTTP compression manager</param> protected MinifiedAndCompressedHtmlMasterPage(WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager, IHttpCompressionManager compressionManager) : base(new MinifiedHtmlComponent(configuration, minificationManager), new CompressedComponent(configuration, compressionManager)) { }
/// <summary> /// Constructs a instance of Web Forms page with support of HTML minification and HTTP compression /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> /// <param name="compressionManager">HTTP compression manager</param> public MinifiedAndCompressedHtmlPage(WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager, IHttpCompressionManager compressionManager) : base(configuration, minificationManager, compressionManager) { }
/// <summary> /// Constructs a instance of Web Forms page with support of HTML minification /// </summary> /// <param name="configuration">WebMarkupMin configuration</param> /// <param name="minificationManager">HTML minification manager</param> public MinifiedHtmlPage(WebMarkupMinConfiguration configuration, IHtmlMinificationManager minificationManager) : base(configuration, minificationManager) { }