Updates the README regarding minifying sources
hiromipaw

hiromipaw commited on 2017-07-03 09:56:57
Zeige 2 geänderte Dateien mit 5 Einfügungen und 2 Löschungen.

... ...
@@ -1,7 +1,5 @@
1 1
 RewriteEngine On
2 2
 
3
-#ErrorDocument 404 /404
4
-
5 3
 # moved to /docs/
6 4
 RewriteRule ^faq(.*) /docs/faq$1 [R=301,L]
7 5
 RewriteRule ^bridges(.*) /docs/bridges$1 [R=301,L]
... ...
@@ -75,6 +75,11 @@ The build fails with "Invalid object name".
75 75
   This means your tor repository is out of date. Update your tor git
76 76
 repository.
77 77
 
78
+### Some information regarding working with minified CSS and JS sources
79
+
80
+If you want to edit any of the CSS or JS sources, please bear in mind that the HTML uses the minified versions. We keep in the repository both versions side-to-side. Once you edit the original source make sure you generate the minified version again. Most editors have plugins to minify CSS and JS files.
81
+
82
+If you are wondering why is it "cool" to minify sources even though compression is used on the server, please consider that Minification can be well be used in combination with gzipping sources. Minification does a lot of additional things that compression doesn't do. During minification comments are removed, long variables are renamed to shorter variable names, etc. Transferred data can be significantly smaller after minification, than by simply compressing the original. Although this depends a lot on the original source, minifying helps with mobile browsers and slower connections.
78 83
 
79 84
 ### More detailed instructions from Roger
80 85
 
81 86