aboutsummaryrefslogtreecommitdiff
path: root/build/they-wont-wait/index.html
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
committerBradley Taunt <bt@btxx.org>2024-06-08 13:43:37 -0400
commit16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (patch)
tree11947abb71e38cbe75116871694a44c33d257763 /build/they-wont-wait/index.html
parentdcfb172704f3afb68a30425029ec834be2883274 (diff)
Remove incorrectly generated files, fix up markdown articles
Diffstat (limited to 'build/they-wont-wait/index.html')
-rw-r--r--build/they-wont-wait/index.html32
1 files changed, 2 insertions, 30 deletions
diff --git a/build/they-wont-wait/index.html b/build/they-wont-wait/index.html
index 674c0fc..3410d98 100644
--- a/build/they-wont-wait/index.html
+++ b/build/they-wont-wait/index.html
@@ -3,11 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light">
<link rel="icon" href="data:,">
<title>They Won't Wait: A Warning for Slow Websites</title>
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
<link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" />
-<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
+<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}blockquote{background:rgba(0,0,0,0.1);border-left:4px solid;padding-left:5px;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style>
</head>
<nav>
@@ -16,39 +17,23 @@
<main>
<h1 id="they-wont-wait-a-warning-for-slow-websites">They Won&#8217;t Wait: A Warning for Slow Websites</h1>
-
<p>2019-06-25</p>
-
<p><em>Your website is probably slow</em>. I&#8217;m not trying to make you feel bad or dismiss all the hard work you&#8217;ve put into your project. Heck, performance might have been a core value of the design. But websites can always be faster.</p>
-
<p>People have become increasingly more impatient over the last decade when it comes to technology, specifically non-native web-based interactions. Users expect your website to load almost instantly or they will leave and try another site, probably one of your competitors. Why should they stick around if your competitors&#8217; websites load half a second faster?</p>
-
<p>Users are tired of being bombarded with tracking scripts, having to download massive component libraries, forced to deal with &#8220;accept cookies&#8221; prompts, playing a small mini-game of &#8220;close those ads!&#8221;, and then being subjected to never-ending loading screens. This is not the internet we were promised.</p>
-
<blockquote>
<p>It&#8217;s in my nature, I always liked <strong>speed</strong>.</p>
-
<p>- Guy Lafleur</p>
</blockquote>
-
<h2 id="we-can-do-better">We can do better</h2>
-
<p>If there is only one thing that you learn from this post, hopefully it&#8217;s knowing to better value the <strong>time and money of your users</strong>. It&#8217;s a user&#8217;s <em>choice</em> to visit your website, so taking advantage of their time is extremely careless. Don&#8217;t be arrogant and ignore the cost of data on most mobile plans either. Eating up a chunk of someone&#8217;s data just for hitting your website is rage-inducing. That&#8217;s how you can lose customers permanently.</p>
-
<p>Let&#8217;s do an analogy, because <strong>I love stupid analogies</strong>:</p>
-
<p>Imagine going to your local hardware store because you need to buy a new hammer. Once you get to the entrance a woman holds the the door closed and asks you if it&#8217;s alright for someone to follow you around the store today. You say no. She then follows up by asking if you accept their hardware store agreement before proceeding inside - you tell her &#8220;sure&#8221;. She finally opens the door and lets you in. As you walk into the store she quickly stuffs a few advertisements for other local businesses into you hand. &#8220;Thanks&#8221;, you mutter.</p>
-
<p>Once inside you realize the hardware store is <em>very big</em> and manually looking for a hammer might take a while. You walk up to the front desk to ask where you can find a hammer but notice the cashier is playing with their phone behind the counter. You try to get their attention but they simply raise their hand and shout &#8220;Be with you in a minute&#8221;. After a short while they get off their phone and <em>finally</em> listen to your question. They then tell you where to find the hammers.</p>
-
<p>Does this sound like a <em>fast</em> and easy experience?</p>
-
<p>As silly as this hypothetical trip to the hardware store might be, it&#8217;s exactly what many current websites are putting their users through. Users - read <em>customers</em> - are coming to your website with a specific goal in mind; checking out a product, consuming information or just satisfying their curiosity. Stop putting so many blockers and excessive bloat in front of them.</p>
-
<h2 id="data-doesnt-lie">Data doesn&#8217;t lie</h2>
-
<p>If my terrible analogy wasn&#8217;t enough to convince you to implement better performance on your website, then maybe some &#8220;BIG DATA&#8221; will.</p>
-
<ul>
<li><a href="https://web.archive.org/web/20081117195303if_/http://home.blarg.net/~glinden/StanfordDataMining.2006-11-29.ppt">Amazon (PowerPoint, slide #15)</a>: 100 ms of latency resulted in 1% less sales.</li>
<li><a href="https://youtu.be/6x0cAzQ7PVs?t=936">Google (video)</a>: 500 ms caused a 20% drop in traffic.</li>
@@ -56,35 +41,26 @@
<li><a href="https://blog.mozilla.org/metrics/2010/04/05/firefox-page-load-speed-%E2%80%93-part-ii/">Mozilla</a>: Shaving 2.2 seconds off page load time increased downloads by 15.4%</li>
<li><a href="https://www.slideshare.net/stubbornella/designing-fast-websites-presentation/23-1_Create_a_component_library">Yahoo</a>: 400 ms resulted in a 5 to 9% drop in traffic</li>
</ul>
-
<p>All data taken from <a href="https://instant.page">instant.page</a> (which I am a huge fan of &hearts;)</p>
-
<p>The fact something as small as 100 ms can have such a profound impact on your bottom-line should be eye-opening. You&#8217;re leaving money of the table by not tackling even the low-hanging, easy performance wins. You need to start valuing your users&#8217; time and stop serving them excessive garbage they never asked for.</p>
-
<h2 id="small-and-easy-wins">Small and easy wins</h2>
-
<p>Not all of these suggestions can work for every project (due to restrictions, brand guidelines, required marketing targets, etc.) but for most developers&#47;designers they should be easy to implement: (in no particular order of importance)</p>
-
<ul>
<li>Reduce the number of web requests
-
<ul>
<li><a href="https://developers.google.com/web/fundamentals/performance/get-started/httprequests-5">HTTP Requests</a></li>
</ul></li>
<li>Use web-safe fonts when available or if using custom fonts utilize the <code>font-display</code> property
-
<ul>
<li><a href="https://www.cssfontstack.com/">CSS Font Stack</a></li>
<li><a href="https://css-tricks.com/font-display-masses/">Font Display for the Masses</a></li>
</ul></li>
<li>Make proper use of <em>critical CSS</em>
-
<ul>
<li><a href="https://alexwright.net/web-design-secrets/how-to-use-critical-css/">How to Use Critical CSS</a></li>
<li>Automatically generate CSS based on &#8220;above the fold&#8221;: <a href="https://github.com/filamentgroup/criticalCSS">criticalCSS</a></li>
</ul></li>
<li>Process all media (images &#47; videos) through 3rd party tools
-
<ul>
<li><a href="https://cloudinary.com/">Cloudinary</a></li>
<li><a href="https://kraken.io/">Kraken.io</a></li>
@@ -92,20 +68,16 @@
<li>Sidenote: this blog uses the <a href="https://nhoizey.github.io/jekyll-cloudinary/">jekyll-cloudinary</a> plugin to automatically process images</li>
</ul></li>
<li>Use &#8220;just-in-time&#8221; preloading (highly recommended for improved UX)
-
<ul>
<li><a href="https://instant.page/">Instant Page</a></li>
</ul></li>
<li>Avoid using heavy tech-stacks whenever possible
-
<ul>
<li>Unless it is a critical use-case, users should not have to process or download extra resources</li>
<li>This also includes remove ads, pop-ups, 3rd party sign-up prompts, cookie notifications, over-the-top element animations, and all other <strong>garbage</strong>. This impacts <em>UX</em> performance, which is just as crucial as website loading speed</li>
</ul></li>
</ul>
-
<h2 id="no-need-to-be-extreme">No need to be extreme</h2>
-
<p>These quick &#8220;guidelines&#8221; are just a solid jumping-off point when tackling new projects or re-working current websites. There isn&#8217;t some agreed upon <em>golden standard</em> when it comes to web performance, but I find these rules work as a great place to start. Hopefully it can help others as well.</p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>