Skip to content

Loading…

Add optional way to strip whitespace from templates #2511

Closed
sorvell opened this Issue · 6 comments

3 participants

@sorvell
Owner

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-whitespace option to templates that would be processed at registration time and would strip all whitespace from templates.

@sorvell sorvell added the p1 label
@sorvell sorvell self-assigned this
@ebidel
Owner
@samccone

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.

@ebidel
Owner
@samccone

oh perhaps I am not correctly understanding what

whitespace is stripped from templates

means then :wink:

@ebidel
Owner

@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

@ebidel
Owner

This is fixed from Steve's commit.

@ebidel ebidel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.