<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Diplomats can code too! (Posts about rant)</title><link>https://wintermade.it/blog/</link><description></description><atom:link href="https://wintermade.it/blog/categories/rant.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 05 Oct 2019 08:14:28 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Your blog should be rendered on the server </title><link>https://wintermade.it/blog/posts/dont-use-a-single-page-application-for-your-blog.html</link><dc:creator>Alessandro Balzano</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;a class="reference external" href="https://journal.plausible.io/you-probably-dont-need-a-single-page-app"&gt;"You probably don't need a single-page application" - Plausible"&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This blog post from Plausible just reminded me of a a pet peeve of mine:
blogs that are built as single page applications.
I don't like being greeted with a blank page
because I don't want to execute whatever code you send to my browser.&lt;/p&gt;
&lt;p&gt;There are several use cases for single page applications, but blogs are
not one of them, for several reasons.
Some of them are already explained in the article, and I'm going
to reiterate them too, but I want to add a different perspective to the Plausible's short essay.&lt;/p&gt;
&lt;div class="section" id="i-just-want-to-read-content"&gt;
&lt;h2&gt;I just want to read content&lt;/h2&gt;
&lt;p&gt;A blog just contains text and some media (images, audio or video).
We don't need to download some Javascript, then execute it to request the
real content and then show it to the user - why can't I just download the content?&lt;/p&gt;
&lt;p&gt;Another advantage is that you don't need to a lot of work to let search engines index your work.
Do you think it is a non-issue? &lt;a class="reference external" href="https://www.elephate.com/blog/javascript-seo-backfire-hulu-com-case-study/"&gt;Hulu would like to have a word with you.&lt;/a&gt; Due to some problems with their client-side-only rendering, Google could not index them anymore, destroying Hulu's previous work on their targeted keywords.&lt;/p&gt;
&lt;p&gt;I don't care about the tool you use to generate your blog, whether you build it
on your laptop and push via FTP or use Wordpress to write and publish your new eessays - it's just fine, all those workflows are valid - they let your readers (me!) just get the content they want to read.&lt;/p&gt;
&lt;p&gt;If you &lt;strong&gt;really&lt;/strong&gt; need to build your entire website using javascript, then please, I beg you: setup Server-side Static Rendering (SSR) to create a static "base" version of the website.
Most libraries/frameworks support SSR, so just study your framework's documentation and set it up.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="javascript-should-enhance-the-experience"&gt;
&lt;h2&gt;Javascript should enhance the experience&lt;/h2&gt;
&lt;p&gt;I really love &lt;a class="reference external" href="http://getdolphins.com/blog/interactive-data-visualizations-new-york-times/"&gt;New York Times'-style interactive data visualizations&lt;/a&gt;:
they &lt;em&gt;are&lt;/em&gt; part of the content they want to show you, so it's OK to
enable Javascript to enjoy those applets.
Even New York Times articles, though, are just text that are &lt;em&gt;enhanced&lt;/em&gt; by the
interactive applets - you still get the text.
It's ok to require Javascript to load comments - especially if you use third-party services such as Disqus - because, y'know, comments are not a core part of the experience.&lt;/p&gt;
&lt;p&gt;So, please, stop forcing javascript on your blog readers. Just let me read your content.&lt;/p&gt;
&lt;hr class="docutils"&gt;
&lt;p&gt;I hope you liked this new issue of &lt;a class="reference external" href="https://wintermade.it/blog/categories/cat_interesting-links.html"&gt;Interesting Links&lt;/a&gt;, a column
where I highlight interesting articles, with my own comments and thoughts.
If you appreciated this small rant, tell me that on &lt;a class="reference external" href="https://twitter.com/alfateam123"&gt;Twitter&lt;/a&gt;, or support me on &lt;a class="reference external" href="https://www.ko-fi.com/alessandrobalzano"&gt;Ko-fi&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</description><category>blogging</category><category>rant</category><category>single page applications</category><guid>https://wintermade.it/blog/posts/dont-use-a-single-page-application-for-your-blog.html</guid><pubDate>Sun, 17 Feb 2019 15:37:05 GMT</pubDate></item></channel></rss>