Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt for CSS instead of NewLines filter #39

Closed
ProLoser opened this issue Nov 7, 2014 · 1 comment
Closed

Opt for CSS instead of NewLines filter #39

ProLoser opened this issue Nov 7, 2014 · 1 comment

Comments

@ProLoser
Copy link

ProLoser commented Nov 7, 2014

Referring to https://github.com/tarlepp/angular-sailsjs-boilerplate/blob/master/frontend/src/app/components/Filters/newLines.js

You can get a pretty decent performance boost by simply using CSS and dropping this filter altogether.

https://developer.mozilla.org/en-US/docs/Web/CSS/white-space

Refer to the pre, pre-line and pre-wrap for different variations that all have the same result as this filter.

@tarlepp
Copy link
Owner

tarlepp commented Nov 8, 2014

And again you're absolutely right about this. Going to fix this.

@tarlepp tarlepp closed this as completed in 30b0042 Nov 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants