Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

88 lines (67 sloc) 5.259 kb
<!DOCTYPE html>
<meta charset=utf-8>
<meta name=robots content=noindex>
<title>Colophon - Dive Into Python 3</title>
<link rel=stylesheet href=dip3.css>
.ss{float:right;margin:0 0 1.75em 1.75em}
<link rel=stylesheet media='only screen and (max-device-width: 480px)' href=mobile.css>
<link rel=stylesheet media=print href=print.css>
<meta name=viewport content='initial-scale=1.0'>
<form action=><div><input type=hidden name=cx value=014021643941856155761:l5eihuescdw><input type=hidden name=ie value=UTF-8>&nbsp;<input type=search name=q size=25 placeholder="powered by Google&trade;">&nbsp;<input type=submit name=sa value=Search></div></form>
<p>You are here: <a href=index.html>Home</a> <span class=u>&#8227;</span> <a href=table-of-contents.html>Dive Into Python 3</a> <span class=u>&#8227;</span>
<blockquote class=q>
<p><span class=u>&#x275D;</span> <i lang=fr>Je n&#8217;ai fait celle-ci plus longue que parce que je n&#8217;ai pas eu le loisir de la faire plus courte.</i><br>(I would have written a shorter letter, but I did not have the time.) <span class=u>&#x275E;</span><br>&mdash; <a href=>Blaise Pascal</a>
<p id=toc>&nbsp;
<h2 id=divingin>Diving In</h2>
<p class=f>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.
<p class='ss nm'><img src=i/openclipart.org_media_files_johnny_automatic_5261.png width=314 height=273 alt='[typewriter]'>
<p>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.
<p>I won&#8217;t bore you with all the details. Wait, yes&nbsp;&mdash;&nbsp;I will bore you with all the details. But here&#8217;s the short version.
<li>HTML is minimized, then served <a href=>compressed</a>.
<li>Scripts and stylesheets are minimized by <a href=>YUI Compressor</a> (and also served compressed).
<li>Scripts are combined to reduce HTTP requests.
<li>Stylesheets are combined and inlined to reduce HTTP requests.
<li>Unused CSS selectors and properties are <a href=>removed on a page-by-page basis</a> with a little help from <a href=>pyquery</a>.
<li>HTTP caching and other server-side options are optimized based on advice from <a href=>YSlow</a> and <a href=>Page Speed</a>.
<li>Pages use <a href=>Unicode characters</a> in place of images wherever possible.
<li>Images are optimized with <a href=>OptiPNG</a>.
<li>The entire book was <a href=>lovingly hand-authored in HTML 5</a> to avoid markup cruft.
<p class=a>&#x2042;
<h2 id=typography>Typography</h2>
<p>vertical rhythm, best available ampersand, curly quotes/apostrophes, other stuff from
<p class=a>&#x2042;
<h2 id=graphics>Graphics</h2>
<p>Unicode, callouts, font-family issues on Windows
<p class=a>&#x2042;
<h2 id=performance>Performance</h2>
<p>"Dive Into History 2009 edition", minimizing CSS + JS + HTML, inline CSS, optimizing images
<p class=a>&#x2042;
<h2 id=fun>Fun stuff</h2>
<p>Quotes, constrained writing(?), PapayaWhip
<p class=a>&#x2042;
<h2 id=furtherreading>Further Reading</h2>
<li><a href=>The Elements of Typographic Style Applied to the Web</a>
<li><a href=>Setting Type on the Web to a Baseline Grid</a>
<li><a href=>Compose to a Vertical Rhythm</a>
<li><a href=>Use the Best Available Ampersand</a>
<li><a href=>Unicode Support in HTML, Fonts, and Web Browsers</a>
<li><a href=>YSlow</a> for <a href=>Firebug</a>
<li><a href=>Best Practices for Speeding Up Your Web Site</a>
<li><a href=>14 Rules for Faster-Loading Web Sites</a>
<li><a href=>YUI Compressor</a>
<li><a href=>Google Page Speed</a>
<li><a href=>Using Google Page Speed</a>
<li><a href=>OptiPNG</a>
<p class=c>&copy; 2001&ndash;11 <a href=about.html>Mark Pilgrim</a>
<script src=j/jquery.js></script>
<script src=j/dip3.js></script>
<!--[if IE]><script src=j/html5.js></script><![endif]-->
Jump to Line
Something went wrong with that request. Please try again.