-
- Downloads
There was an error fetching the commit references. Please try again later.
Prevent empty classes in ansi2html conversion
Currently we write out empty CSS classes (`class=""`) every time we create a new tag. This adds 9 unnecessary bytes per span element. In a recent trace, I have counted 11950 span elements. So we transported 105 unnecessary kilobytes!
Showing
- app/assets/stylesheets/pages/builds.scss 1 addition, 0 deletionsapp/assets/stylesheets/pages/builds.scss
- changelogs/unreleased/leipert-improve-ansi2html.yml 5 additions, 0 deletionschangelogs/unreleased/leipert-improve-ansi2html.yml
- lib/gitlab/ci/ansi2html.rb 17 additions, 10 deletionslib/gitlab/ci/ansi2html.rb
- spec/controllers/projects/jobs_controller_spec.rb 1 addition, 1 deletionspec/controllers/projects/jobs_controller_spec.rb
- spec/lib/gitlab/ci/ansi2html_spec.rb 21 additions, 22 deletionsspec/lib/gitlab/ci/ansi2html_spec.rb
- spec/lib/gitlab/ci/trace/stream_spec.rb 7 additions, 9 deletionsspec/lib/gitlab/ci/trace/stream_spec.rb
- spec/support/shared_examples/ci_trace_shared_examples.rb 2 additions, 2 deletionsspec/support/shared_examples/ci_trace_shared_examples.rb
Please register or sign in to comment