Glance-Bookmarklet icon indicating copy to clipboard operation
Glance-Bookmarklet copied to clipboard

minify files

Open tomByrer opened this issue 10 years ago • 3 comments

Smaller files = faster downloading, better caching Loads of online & scriptable minifers. HTML is a bit more rare; try kangax/html-minifier or Moveo/minimize. Best if you use a condensed top-line banner.

My personal preference is that the minified versions are named spritz.js & spritz.css & sources are spritz.src.js & spritz.src.css; saves a few bytes.

Might be better to insert the CSS inside the HTML, since the CSS is so small & not worth a 2nd download IMHO. Maybe even insert all into the JS, either by hand or via browserify. But still have to ensure they all are minimized.

tomByrer avatar Mar 13 '14 07:03 tomByrer

This is not a bad idea, however, I strongly favor code quality and maintainability over micro-optimization, so I don't like mixed HTML and CSS and things like that.

This is definitely something which would be factored into the 1.2 release pipeline though.

Miserlou avatar Mar 13 '14 18:03 Miserlou

I strongly favor code quality and maintainability over micro-optimization

They are not exclusive; develop in separate files, then concatenate/minify at final release. Many projects do this. Many build tools to help out with that if you don't want to do by hand.

tomByrer avatar Mar 13 '14 18:03 tomByrer

Yes, I agree. This will be done for 1.2.0 release.

Miserlou avatar Mar 13 '14 19:03 Miserlou