|
From: | address@hidden |
Subject: | Re: [lwip-users] [OT] Minimize .html, .js and .css files |
Date: | Tue, 20 Feb 2018 19:39:22 +0100 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 20.02.2018 16:35, Giuseppe Modugno wrote:
Another OT. In order to reduce Flash space for the filesystem used by httpd, I'm thinking to reduce the size of .html, .css and .js files. This means removing comments, spaces (when not needed) and maybe changing variable names (from "my_long_variable" in "xtr"). Do you know of some tools that makes those things?
Additionally, you can zip the files if you are sure all clients can handle gzipped content. Nowadays, this should work with pretty much every client. While I wouldn't suggest this for every use case, this can be a valid option if you know the clients that will access your server.
Makefsdata has a mode where it can compress the files at compile time if you link it with miniz.c (and set MAKEFS_SUPPORT_DEFLATE=1).
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |