❝ Je n’ai fait celle-ci plus longue que parce que je n’ai pas eu le loisir de la faire plus courte.
(I would have written a shorter letter, but I did not have the time.) ❞
— Blaise Pascal
This book, like all books, was a labor of love. Oh sure, I got paid the medium-sized bucks for it, but nobody writes technical books for the money. And since this book is available on the web as well as on paper, I spent a lot of time fiddling with webby stuff when I should have been writing.
The online edition loads as efficiently as possible. Efficiency never happens by accident; I spent many hours making it so. Perhaps too many hours. Yes, almost certainly too many hours. Never underestimate the depths to which a procrastinating writer will sink.
I won’t bore you with all the details. Wait, yes — I will bore you with all the details. But here’s the short version.
- HTML is minimized, then served compressed.
- Scripts and stylesheets are minimized by YUI Compressor (and also served compressed).
- Scripts are combined to reduce HTTP requests.
- Stylesheets are combined and inlined to reduce HTTP requests.
- Unused CSS selectors and properties are removed on a page-by-page basis with a little help from pyquery.
- HTTP caching and other server-side options are optimized based on advice from YSlow and Page Speed.
- Pages use Unicode characters in place of images wherever possible.
- Images are optimized with OptiPNG.
- The entire book was lovingly hand-authored in HTML 5 to avoid markup cruft.
vertical rhythm, best available ampersand, curly quotes/apostrophes, other stuff from webtypography.net
Unicode, callouts, font-family issues on Windows
"Dive Into History 2009 edition", minimizing CSS + JS + HTML, inline CSS, optimizing images
Quotes, constrained writing(?), PapayaWhip
- The Elements of Typographic Style Applied to the Web
- Setting Type on the Web to a Baseline Grid
- Compose to a Vertical Rhythm
- Use the Best Available Ampersand
- Unicode Support in HTML, Fonts, and Web Browsers
- YSlow for Firebug
- Best Practices for Speeding Up Your Web Site
- 14 Rules for Faster-Loading Web Sites
- YUI Compressor
- Google Page Speed
- Using Google Page Speed
© 2001–11 Mark Pilgrim