From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Steuer Subject: Re: Org based websites w/o export Date: Wed, 21 May 2014 09:49:46 +0200 Message-ID: <20140521094946.31f28a81@gaia> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn1Hs-0005Jt-Rk for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:50:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn1Hm-000373-JX for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:50:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:36159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn1Hm-000334-9T for emacs-orgmode@gnu.org; Wed, 21 May 2014 03:50:02 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wn1Hk-0002SS-UJ for emacs-orgmode@gnu.org; Wed, 21 May 2014 09:50:00 +0200 Received: from gaia.unibw-hamburg.de ([139.11.181.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 May 2014 09:50:00 +0200 Received: from detlef.steuer by gaia.unibw-hamburg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 May 2014 09:50:00 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am Tue, 20 May 2014 13:43:20 +0200 schrieb Bernd Haug : > On 19 May 2014 19:58, Ken Mankoff wrote: > > Jr works by having javascript render the markdown to HTML. That is, > > you write markdown, upload markdown w/o running a generator, and the > > generator runs in the browser of the viewer. > > > > This is efficient for the server (simpler pages) and author (no > > need to run a static site generator), but may be globally > > inefficient for a popular site (many browser doing rendering). >=20 > I'd phrase this point more strongly: > The whole concept of intensive client-side rendering > is fashionable, but an eminently bad idea from a > number of perspectives. Thank you for this post! This fashion together with the love for an unbearable amount of whitespace instead of content on "modern" websites is irritating. (Ok, at least for me.)=20 If you really suffer from converting .md to .html just automate it with so= me makefile and scp magic. You can hack away like in the case of client site=20 rendering and you don=C2=B4t imply the consequences Bernd outlines. On the server side compression of static pages should help a lot. (There is a trade off between energy demand and compression of course, but .gz decompression is very efficient.) >=20 > I ran my list past Ken and he encouraged me to post them (thanks), so > here goes: >=20 > 1) UX: >=20 > Rendering in the browser's rendering engine is always faster than > rendering in JS and then in the browser's rendering engine. Speed > matters. Think about the runtime and longevity of your mobile phone. For most this should be a killer argument. :-) Regards Detlef=20 >=20 > 2) Engineering ("l'art pour l'art"): >=20 > Not caching the most eminently cacheable thing on Earth, the rendering > of static web pages, makes baby Dijkstra cry. >=20 > 3) Economics (egoistical): >=20 > Search engines are optimized for interpreting and presenting HTML. If > you want to be found, have your content in HTML. >=20 > 4) Economics (global): >=20 > Electricity ain't free; why spend it many times over even if it's not > you doing the spending? >=20 > 5) Ecology >=20 > There are impacts to wasting power beyond its monetary price. >=20 > ---- >=20 > So, enough with the criticism. How to constructively approach this? >=20 > If the size difference between HTML and MD makes a difference for > your bandwidth cost, maybe consider just precompressing your files > offline (this, too, can be done prior to uploading=E2=80=A6) and teaching= your > web server that for files x.html, deliver x.html.gz as a pre > compressed stream first if available. >=20 > Cheers, Bernd >=20 >=20