From c3f10a5794997566c25a9ab90850e86deb4af7f9 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Mon, 9 Feb 2009 11:11:13 -0500 Subject: [PATCH] more performance fiddling --- .htaccess | 4 ++++ dip3.min.css | 1 - dip3.min.js | 1 - native-datatypes.html | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 dip3.min.css delete mode 100644 dip3.min.js diff --git a/.htaccess b/.htaccess index 119ec12..a1209c3 100644 --- a/.htaccess +++ b/.htaccess @@ -5,4 +5,8 @@ DirectoryIndex index.html AddType text/plain .txt AddType application/x-python .py AddType image/x-icon .ico +AddType text/javascript .js +AddType text/css .css AddDefaultCharset utf-8 +ExpiresActive on +ExpiresByType text/html M86400 diff --git a/dip3.min.css b/dip3.min.css deleted file mode 100644 index 57a7c9a..0000000 --- a/dip3.min.css +++ /dev/null @@ -1 +0,0 @@ -html{background:#fff;color:#000;}body{margin:28px;}body,.widgets a{font:normal medium 'Gill Sans','Gill Sans MT','Ikarius ADF',Candara,Jara,sans-serif;line-height:1.75;word-spacing:.1em;}a{background:transparent;text-decoration:none;border-bottom:1px dotted;}a:hover{border-bottom:1px solid;}a:link,.widgets a{color:#1b67c9;}a:visited{color:darkorchid;}.widgets a{text-decoration:underline;border:0;}.widgets,.widgets a,.download,.c{font-size:small;}blockquote .widgets{float:left;}blockquote .block{clear:left;}h1 a,h2 a,h3 a,#nav a{color:inherit!important;}abbr,acronym{letter-spacing:.1em;text-transform:lowercase;font-variant:small-caps;}h1,h2,h3,p,ul,ol{margin:1.75em 0;font-size:medium;}h1{background:papayawhip;width:100%;}h2,h3{clear:both;}form div{float:right;}pre{white-space:pre-wrap;padding-left:2.154em;line-height:1.75;border-left:1px dotted;}pre,kbd,code,samp{font-family:Consolas,Inconsolata,Monaco,monospace;font-size:medium;word-spacing:0;}pre a,.widgets a{padding:.4375em 0;border:0;}pre a:hover{border:0;}kbd{font-weight:bold;}.prompt{color:#667;}td pre{margin:0;padding:0;border:0;}li ol{margin:0;}.c{text-align:center;}p.fancy:first-letter{float:left;background:transparent;color:gainsboro;padding:.11em 4px 0 0;font:normal 4em/0.68 serif;}blockquote.q{margin:auto;text-align:right;font-style:oblique;}.skip a,.skip a:hover,.skip a:visited{position:absolute;left:0;top:-500px;width:1px;height:1px;overflow:hidden;}.skip a:active,.skip a:focus{position:static;width:auto;height:auto;}table{width:100%;border-collapse:collapse;}th{text-align:left;padding:0 .5em;vertical-align:baseline;border:1px dotted;}th,td{width:45%;vertical-align:top;}td{border:1px dotted;padding:0 .5em;}th:first-child{width:10%;text-align:center;}span,tr+tr th:first-child{font-family:'Arial Unicode MS',sans-serif;font-style:normal;}.q span{font-size:large;}.note{margin-left:4.94em;}.note span{display:block;float:left;font-size:xx-large;line-height:.875em;margin:0 .22em 0 -1.22em;}table.simple th{font-family:inherit!important;}.fr{width:100%;border:1px dotted;margin-top:3.5em;}.fr h4{margin-top:-1.2em;margin-left:-1em;width:8.5em;border:1px dotted;padding:3px 3px 3px 13px;background:#fff;color:inherit;position:relative;}.hover{background:#eee;color:inherit;cursor:default;}i.baa{font-family:Baskerville,Constantia,Palatino,'Palatino Linotype','URW Palladio L','URW Bookman L',serif;}body{counter-reset:h1;}h1:before{content:"Chapter " counter(h1) ". ";}h1{counter-reset:h2;}h2:before{counter-increment:h2;content:counter(h1) "." counter(h2) ". ";}h2{counter-reset:h3;}h3:before{counter-increment:h3;content:counter(h1) "." counter(h2) "." counter(h3) ". ";} \ No newline at end of file diff --git a/dip3.min.js b/dip3.min.js deleted file mode 100644 index 79f3588..0000000 --- a/dip3.min.js +++ /dev/null @@ -1 +0,0 @@ -var HIDESHOW={visible:"hide",hidden:"show"};google.load("jquery","1.3");google.setOnLoadCallback(function(){$(document).ready(function(){$("pre > code").each(function(a){var b=$(this.parentNode);if(b.parents("table").length==0){b.addClass("code")}});$("pre.code, pre.screen").each(function(a){this.id="autopre"+a;$(this).wrapInner('
');$(this).prepend('
["+HIDESHOW.visible+"] [open in new window]
");$(this).prev("p.download").each(function(b){$(this).next("pre").find("div.widgets").append(" "+$(this).html());this.parentNode.removeChild(this)})});$("pre.code, pre.screen").each(function(){$(this).find("a:not([href])").each(function(d){var c=$(this);var b=c.parents("pre").next("ol").find("li:nth-child("+(d+1)+")");b.add(c).hover(function(){c.addClass("hover");b.addClass("hover")},function(){c.removeClass("hover");b.removeClass("hover")})})});$("table").each(function(){$(this).find("tr:gt(0)").each(function(b){var c=$(this);var a=c.parents("table").next("ol").find("li:nth-child("+(b+1)+")");if(a.length>0){a.add(c).hover(function(){c.addClass("hover");a.addClass("hover")},function(){c.removeClass("hover");a.removeClass("hover")})}})})})});function toggleCodeBlock(c){$("#"+c).find("div.block").toggle();var b=$("#"+c).find("a.toggle");b.text(b.text()==HIDESHOW.visible?HIDESHOW.hidden:HIDESHOW.visible)}function plainTextOnClick(c){var b=$("#"+c).clone();b.find("div.widgets, span").remove();var a=window.open("about:blank","plaintext","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=400,left=35,top=75");a.document.open();a.document.write("
"+b.html());a.document.close()};
\ No newline at end of file
diff --git a/native-datatypes.html b/native-datatypes.html
index b7c6918..2f2b09c 100644
--- a/native-datatypes.html
+++ b/native-datatypes.html
@@ -4,8 +4,6 @@
 
 Native datatypes - Dive into Python 3
 
-
-