diff options
Diffstat (limited to 'build/improving-tufte-jekyll')
-rw-r--r-- | build/improving-tufte-jekyll/index.html | 33 |
1 files changed, 2 insertions, 31 deletions
diff --git a/build/improving-tufte-jekyll/index.html b/build/improving-tufte-jekyll/index.html index 95bc768..036de82 100644 --- a/build/improving-tufte-jekyll/index.html +++ b/build/improving-tufte-jekyll/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>Improving Tufte CSS for Jekyll</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,21 +17,13 @@ <main> <h1 id="improving-tufte-css-for-jekyll">Improving Tufte CSS for Jekyll</h1> - <p>2019-11-01</p> - <p>After creating the ET-Jekyll theme almost two years ago, I finally got around to revamping the structure and improving a lot of minor performance issues. Items that have been surely needing of updates for the last couple of years.</p> - <h2 id="introductions">Introductions</h2> - <p>I’ve always been a sucker for Edward Tufte’s incredibly simple, yet powerful design work used in his books and handout projects. So, in 2018 I released a Tufte CSS inspired Jekyll theme for the open source community. I called it <a href="https://et-jekyll.netlify.com">ET-Jekyll</a> (so original, I know). Tufte CSS was a great starting point for my Jekyll theme, but there were areas I thought could use some minor improvements.</p> - <p>Feel free to read all the details on the design here: <a href="https://et-jekyll.netlify.com/et-jekyll-theme/">ET-Jekyll theme details</a></p> - <h2 id="minor-fixes-one-year-later">Minor Fixes One Year Later</h2> - <p>When I finally circled back to this project recently, I noticed some minor issues that could be improved right away with little to no effort. Let’s see the changes made at a glance:</p> - <ul> <li>Sidenote, marginnote and figure element restyling (flexbox)</li> <li>Table styling fixes (right alignment issues)</li> @@ -43,19 +36,12 @@ <li>Add missing image link on example page</li> <li>Update details post structure</li> </ul> - <p>You can view all the updates in more detail <a href="https://github.com/bradleytaunt/ET-Jekyll/commit/254f9e8f28764c9525ba7405bbbfa18a3867d241">here</a>.</p> - <p><strong>So what did this accomplish?</strong> Let’s break it down below.</p> - <h2 id="first-contentful-paint-input-delay">First Contentful Paint & Input Delay</h2> - <p>The new improvements have netted the theme a savings of 300ms on first paint and reduced the input delay by 150ms. Small wins - but wins nonetheless since every millisecond counts.</p> - <h2 id="fixing-render-blocking-items">Fixing Render Blocking Items</h2> - <p>The original theme reported a few items that were slowing down the initial render for the end-users:</p> - <table> <thead> <tr> @@ -64,7 +50,6 @@ <th>Savings (ms)</th> </tr> </thead> - <tbody> <tr> <td>/css/style.css</td> @@ -83,25 +68,18 @@ </tr> </tbody> </table> - <p>These items were resolved by:</p> - <ul> <li>Rendering all styling inline (therefore removing the extra HTTP request)</li> <li>Removing the lazysizes library altogether (browsers plan to support lazy loading natively in the future) - <ul> <li>The future plan is to integrate something like Cloudinary for out-of-the-box image processing</li> </ul></li> <li>Switch over MathJax to render equations as embedded SVGs (saves on bandwidth rendering an entire extra typeface)</li> </ul> - <h2 id="lighthouse-numbers">Lighthouse Numbers</h2> - <p>Though it might not look like much, the updated theme receives a 4-point boost to its performance rating during a Lighthouse audit. Having a perfect score would be even better, but I can settle for 2-points under (for now).</p> - <h4 id="old-version">Old Version</h4> - <table> <thead> <tr> @@ -111,7 +89,6 @@ <th>SEO</th> </tr> </thead> - <tbody> <tr> <td>94</td> @@ -121,9 +98,7 @@ </tr> </tbody> </table> - <h4 id="new-version">New Version</h4> - <table> <thead> <tr> @@ -133,7 +108,6 @@ <th>SEO</th> </tr> </thead> - <tbody> <tr> <td>98</td> @@ -143,11 +117,8 @@ </tr> </tbody> </table> - <h2 id="final-thoughts">Final Thoughts</h2> - <p>This project could still use some more fine-tuning, but for now I’m fairly happy with the outcome. Even the smallest boost in performance and rendering time makes me feel like I accomplished something worthwhile. </p> - <p>Please don’t hesitate to suggest features or point out any issues you happen to stumble across if you plan to use ET-Jekyll. Thanks for reading!</p> <footer role="contentinfo"> <h2>Menu Navigation</h2> |