diff --git a/about.html b/about.html
index aac9e64..80d53ea 100644
--- a/about.html
+++ b/about.html
@@ -20,7 +20,7 @@ h1:before{content:""}
- jQuery is served by Google AJAX Libraries API.
- Other Javascript and CSS resources are minimized by YUI Compressor.
-
- HTTP caching and other server-side options are optimized based on advice from YSlow.
+
- HTTP caching and other server-side options are optimized based on advice from YSlow and Page Speed.
- The text uses Unicode characters in place of graphics wherever possible.
- The entire book was lovingly hand-authored in HTML 5 to avoid markup cruft.
diff --git a/mobile.css b/mobile.css
index 7277919..0e914a7 100644
--- a/mobile.css
+++ b/mobile.css
@@ -98,7 +98,7 @@ h1:before {
/* overrides */
-.nm, .w, aside, form, form+p, .note span, .q span {
+.nm, .w, aside, form, form+p, .note span, .q span, .a {
display:none;
}
dd {
diff --git a/publish b/publish
index 64f2b91..fb0fdf4 100755
--- a/publish
+++ b/publish
@@ -49,6 +49,12 @@ echo "inlining CSS"
css=`cat build/$revision.css`
sed -i -e "s|||g" -e "s|', 1)[0]
+new_css = ''
+for rule in original_css.split('}')[:-1]:
+ selectors, properties = rule.split('{', 1)
+ selectors = ','.join([s for s in selectors.split(',') if pqd(s.split(':', 1)[0])])
+ if selectors:
+ new_css += '%s{%s}' % (selectors, properties)
+open(filename, 'wb').write(raw_data.replace(original_css, new_css))