c# - Minify the Html for an Asp.Net application -


is there event (or filter ) triggered ( called) after rendering output html mvc5 in c #.

i use event remove whitespace between tags decreasing size of html

please help??? :)

you haven't explained reason (first sounds a sad case of micro-optimization, not place spend time, , secondly haven't explained decreasing size of html solve aka the xy problem).

by default iis/iis express uses gzip compress html:

response headers:

content-encoding:gzip

content-type:text/html; charset=utf-8

if you're looking minification, the results of known websites being minified have shown improve them 9-16% , remember extremely complicated , big websites. unless have extremely large website, it's not best place spend time in optimization. if you're bound determined, simple need .net/iis html minification plugin (don't rewrite whats written if can it).


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -