
Loading…
Add optional way to strip whitespace from templates #2511
Owner
sorvell
commented
samccone
commented
whitespace sometimes can be really important in templates, I wonder if automatically stripping by default might break what people expect and be quite difficult to debug.
samccone
commented
oh perhaps I am not correctly understanding what
whitespace is stripped from templates
means then
Owner
ebidel
commented
@samccone it's a blink bug where style recalc takes a large amont of time on textnodes:
https://code.google.com/p/chromium/issues/detail?id=399816
Owner
ebidel
commented
This is fixed from Steve's commit.
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's typically a very minor performance improvement if whitespace is stripped from templates, but it's cumbersome to write html this way. We could expose a
strip-whitespaceoption to templates that would be processed at registration time and would strip all whitespace from templates.