Improve performance by not generating newlines in CSS #61
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While investigating why my blog takes so long to build, I found this arcane line breaking mechanism, which is both slow and unnecessary. It can be made faster, see digitalsparky/cssminify#5. However, the best way to improve performance is to simply remove this feature. I don't entirely understand why it was necessary (the library is from 2012, maybe back then people used weird source control software that could not handle that, but
git
has no such issues), but anyways the files generated here are not added to VCS but instead served over the internet, where it should not matter.PS: I have not actually tested whether this works, since I don't know Ruby. Please test before merging (or alternatively send me a link or something explaining how I can test this locally).