css-minification-benchmark icon indicating copy to clipboard operation
css-minification-benchmark copied to clipboard

Add a table comparing gzip numbers

Open GoalSmashers opened this issue 10 years ago • 5 comments

GoalSmashers avatar Mar 18 '14 22:03 GoalSmashers

If you can change the script to output the numbers is YAML, then everything should be much cleaner; we can use YAML files directly in Jekyll meaning we'd no longer need to generate index.html ourselves :)

XhmikosR avatar Mar 19 '14 05:03 XhmikosR

Good point! Can it be any YAML structure I can think of? Like:

960.css:
  plain: <number-of-bytes>
  compressed: <number-of-bytes>
  minified:    
    clean-css:
      plain: <number-of-bytes>
      compressed: <number-of-bytes>
      took: <number-of-milliseconds>
    clean-css-advanced-off:
...

GoalSmashers avatar Mar 19 '14 07:03 GoalSmashers

Yeah that will work. The only requirement is that the yml file is in "_data" folder. Then I can modify the html so that Jekyll loads that info :)

XhmikosR avatar Mar 19 '14 07:03 XhmikosR

Cool :+1:

GoalSmashers avatar Mar 19 '14 07:03 GoalSmashers

More info http://jekyllrb.com/docs/datafiles/

This way we can use templates and stuff to expand the pages more. Plus they will be cleaner than now.

XhmikosR avatar Mar 19 '14 07:03 XhmikosR