Questions tagged [html-compression]

HTML Compression is reducing the size of the HTML pages by eliminating unnecessary white spaces, tabs and newlines.

html-compression
Filter by
Sorted by
Tagged with
1 vote
1 answer
256 views

Spring Boot - Filter not applied for noHandlerFoundException

I tried to implement a filter following this answer: How do I minify dynamic HTML responses in Spring? This works very good, however, this filter does not work when the error 404 is thrown. Why not? ...
manu's user avatar
  • 566
2 votes
0 answers
318 views

How to enable Gzip compression in flask?

I have deployed a flask app using heroku. I want to enable gzip compression in it. Usually the tutorials and videos on the youtube show gzip compression for php, wordpress and apache server but how ...
Prakhar Soni's user avatar
1 vote
2 answers
77 views

can't find the right compression for this webpage (python requests.get)

I can load this webpage in Google Chrome, but I can't access it via requests. Any idea what the compression problem is? Code: import requests url = r'https://www.huffpost.com/entry/sean-hannity-...
someguy67's user avatar
1 vote
1 answer
597 views

JSP - Inline JS Compression / Minification

We have an web application written in Java which has around 150 JSP files. Unfortunately, each of these JSP files contains inline JS code written in it. I'm trying to compress these file to improve ...
Prashanth Y R's user avatar
-1 votes
1 answer
397 views

Symfony2 how to minify html code

I'm using symfony 2.7 then I want to minify my html code. is there a working bundle to do that? I tried https://github.com/MatTheCat/HtmlCompressorBundle but I didn't see any change. Can you help ...
persia's user avatar
  • 21
0 votes
0 answers
136 views

Is it possible to remove all inter-tag spaces in an HTML string?

I am using htmlcompressor lib. The compress method does the job. If the input is say "<div> \n\nhtml\n\n </div>" It does convert the above to "<div> html </div>" It ...
Amogh Talpallikar's user avatar
3 votes
0 answers
606 views

Minify and gzip html files in gradle

I have lots of js, css, html file in my gradle web project. I have minified and gzipped my javascript and css files by eriwen's this and this plugins. But couldn't find a way to minify and compress ...
fyelci's user avatar
  • 1,419
0 votes
1 answer
1k views

How to minify inline css in an html using HtmlCompressor?

I am trying to minify an html page via my Java code. I am using https://code.google.com/archive/p/htmlcompressor/ to do the compression. Here is my method for minification : public static String ...
user2456373's user avatar
27 votes
10 answers
31k views

How do I compress HTML in laravel 5

In Laravel 4.0, I use the code below to compress the HTML laravel response outputs to browser, however it doesn't work in laravel 5. App::after(function($request, $response) { if($response ...
Emeka Mbah's user avatar
  • 17.1k
0 votes
1 answer
174 views

Any preferably open source html compressor written in Javascript?

I am looking for an HTML compressor/minimizer written in Javascript. Say, I have a Javascript variable containing some HTML code, I want to pass it to a Javascript function that will remove unecessary ...
Jérôme Verstrynge's user avatar
0 votes
3 answers
2k views

Compressing dynamic HTML generated by PHP

I am using PHP for creating some dynamic websites. I have coming across various optimization techniques to optimie my web pages. One among them is HTML compression. Since my web page is having lots of ...
Stranger's user avatar
  • 10.4k
12 votes
1 answer
8k views

How to compress html output in Symfony2?

I know Twig has a {% spaceless %} filter, but it only removes spaces between html tags. I need to return a single line of html for every page in the site. I have a regexp that can deal with that, but ...
HappyDeveloper's user avatar
0 votes
3 answers
978 views

compress large amount of small files in different folders

In our appliation,we save some images in different folders like: 1 2 3 4 ... 500 ... And inside each folder there are large amount of images whose size is (5kb-20kb). Now we found that when we try ...
hguser's user avatar
  • 35.6k
4 votes
3 answers
2k views

HTML Compressor for asp.net

Anyone knows a good way or tool to compress the HTML that is sent to the client? I was thinking in compressing the HTML in the .aspx files in the production server only, so maybe a tool for doing ...
Bruno's user avatar
  • 4,407
6 votes
7 answers
4k views

HTML Compression and SEO? [closed]

At work, we have a dedicated SEO Analyst who's job is to pour over lots of data (KeyNote/Compete etc) and generate up fancy reports for the executives so they can see how we are doing against our ...
FlySwat's user avatar
  • 174k