home.social

#minification — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #minification, aggregated by home.social.

  1. JavaScript minification:

    From my tests with HTML Minifier (and HTML Minifier Next), SWC is about ten times faster (!) than Terser.

    While Terser is the default for JS minification in HTML Minifier, you can easily switch engines:

    github.com/j9t/html-minifier#j

    Bundle size and changed output (though now within ±0.06%) have so far held me from switching defaults, but I’m increasingly concerned about Terser’s posture in terms of how they handle security and performance issues. I’ll share updates.

    #javascript #html #htmlminifier #minification #swc #terser #performance

Share on Mastodon

Enter the server where you have an account.