From: Vladimír Vondruš Date: Tue, 24 Oct 2017 11:29:24 +0000 (+0200) Subject: doc: mention server-side compression config for Apache. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=b9761dfda39981dba2d52125eba154d0ec3df904;p=blog.git doc: mention server-side compression config for Apache. --- diff --git a/doc/css.rst b/doc/css.rst index 6f05a105..c2ad30e7 100644 --- a/doc/css.rst +++ b/doc/css.rst @@ -99,6 +99,17 @@ to include a proper :html:`` tag. The HTML5 DOCTYPE is also required. I recommend using the original files for development and switching to the compiled versions when publishing the website. +.. block-info:: Tip: server-side compression + + Even though the CSS files are already quite small, enabling server-side + compression will make your website load even faster. If you have an Apache + server running, enabling the compression is just a matter of adding the + following to your ``.htaccess`` file: + + .. code:: apache + + AddOutputFilter DEFLATE html css js + With this, you can start using the framework right away. Click the headings below to get to know more.