Questions tagged [minify]

6 questions
14
votes
4 answers

Why is HTML/Javascript minification beneficial

Why is HTML/Javascript minification beneficial when the HTTP protocol already supports gzip data compression? I realize that Javascript/HTML minification has the potential to significantly reduce the size of Javascript/HTML files by removing…
Channel72
  • 2,475
  • 5
  • 27
  • 28
9
votes
3 answers

Is it a good practice to have one bundle per view in Asp Net MVC

Since bundling and minification is all about optimization and making pages load faster, it appears to me that it would be logical to create one bundle for scripts and one bundle for styles per view basis, so that to load all scripts and styles a…
4
votes
3 answers

Do Javascript minifiers optimize for gzip?

Case1: There are two snippets of code that are very similar and very gzip-able, one at the start of the document and the other is beyond 32kb at the end of the document. Does the minifier bring the two snippets together so that gzip will reach the…
davidtgq
  • 431
  • 1
  • 4
  • 13
3
votes
2 answers

Minimizability or readability?

I am authoring a lot of plugins for the content management system that I am writing. I believe it to be of utmost importance that script files (especially if they're plugins) should load quickly, which leads to me to the question that I've asked…
3
votes
2 answers

Is script grouping and minification counter-productive?

On a web page I have 1 script tag that contains all my minified JavaScript (I use SquishIt for .NET). However I see that a few people prefer to load their scripts in parallel using something like requirejs or headjs. I was wondering which is better…
Greg
  • 133
  • 4
0
votes
1 answer

How should I prepare my SVG for production?

I have a project in Angular1.x using a lot of SVG files. I have no idea what to do to SVG files to prepare them for production. I don't want my page to invoke 50 calls to different SVG files. So what are my options and which tools do I have to…
guy mograbi
  • 659
  • 8
  • 11