<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>No Mod Required &#187; tips-and-tricks</title>
	<atom:link href="http://www.drunkenfist.com/304/category/web/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.drunkenfist.com/304</link>
	<description>Rob Larsen writes on entertainment, sports and culture.</description>
	<lastBuildDate>Wed, 08 Feb 2012 02:28:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>rel=&quot;canonical?&quot; I&#039;m Down. More Importantly, So Are Yahoo! and Google</title>
		<link>http://www.drunkenfist.com/304/2009/02/13/relcanonical-im-down-more-importantly-so-are-yahoo-and-google/</link>
		<comments>http://www.drunkenfist.com/304/2009/02/13/relcanonical-im-down-more-importantly-so-are-yahoo-and-google/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 17:02:13 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[tips-and-tricks]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://www.drunkenfist.com/304/?p=5602</guid>
		<description><![CDATA[In the middle of moving all those underscore delineated URLs to dash delineated URLs*, Google went ahead and announced the rel="canonical" scheme for defining the preferred URL for a piece of content. While it's not the biggest deal for me, other than the "/" vs "/index.php" question, for many people with more dynamic systems it's [...]]]></description>
			<content:encoded><![CDATA[<p>In the middle of moving all those underscore delineated URLs to dash delineated URLs*, Google went ahead and announced the rel="canonical" scheme for defining the preferred URL for a piece of content. While it's not the biggest deal for me, other than the "/" vs "/index.php" question, for many people with more dynamic systems it's a <strong>big deal</strong>. Bravo to everyone involved as it's a really straightforward, easy-to-implement solution to a common, troublesome problem.<br />
<span id="more-5602"></span><br />
Google<br />
<a href="http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html">Specify your canonical</a></p>
<blockquote><p>Carpe diem on any duplicate content worries: we now support a format that allows you to publicly specify your preferred version of a URL. If your site has identical or vastly similar content that's accessible through multiple URLs, this format provides you with more control over the URL returned in search results. It also helps to make sure that properties such as link popularity are consolidated to your preferred version.
</p></blockquote>
<p>Yahoo!<br />
<a href="http://ysearchblog.com/2009/02/12/fighting-duplication-adding-more-arrows-to-your-quiver/">Fighting Duplication: Adding more arrows to your quiver</a></p>
<blockquote><p>Avoiding duplicates in the search engine index has consistently been a key concern we’ve heard from webmasters and site owners. Over the last few years, we have made significant strides in finding duplicates in our crawler and index algorithmically and provided webmasters with better tools for controlling these. Today we are announcing our support for a new HTML tag, the
<link> tag, which helps reduce duplicates by documenting the preferred URL form to access each page.</p></blockquote>
<p>*yes, I'm done. Three days, a lot of careful planning and more regular expressions that I've ever written later, everything on my site is now cool like this ( <a href="http://www.drunkenfist.com/art/graffiti-art/black-book/index.php">http://www.drunkenfist.com/art/graffiti-art/black-book/index.php</a> ) Dash heaven.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drunkenfist.com/304/2009/02/13/relcanonical-im-down-more-importantly-so-are-yahoo-and-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Code I Like &#8211; Link Prefetching</title>
		<link>http://www.drunkenfist.com/304/2008/11/24/code-i-like-link-prefetching/</link>
		<comments>http://www.drunkenfist.com/304/2008/11/24/code-i-like-link-prefetching/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 21:35:45 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[Code I Like]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tips-and-tricks]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.drunkenfist.com/304/?p=5119</guid>
		<description><![CDATA[I was reading John Resig's Browser Page Load Performance post earlier today and followed up from there on the concept of Link prefetching. Currently supported by Firefox 2+, Link prefetching is a browser based mechanism for fetching "future" content. Considering I wrote (and ultimately scrapped*) similar functionality for my gallery pages, I was obviously intrigued. [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading John Resig's <a href="http://ejohn.org/blog/browser-page-load-performance/">Browser Page Load Performance</a> post earlier today and followed up from there  on the concept of Link prefetching. Currently supported by Firefox 2+, <a href="https://developer.mozilla.org/en/Link_prefetching_FAQ">Link prefetching</a> is a browser based mechanism for fetching "future" content. Considering I wrote (and ultimately scrapped*) similar functionality for my gallery pages,  I was obviously intrigued.<br />
<span id="more-5119"></span><br />
In its basic version it looks like this:</p>
<p><code>&lt;link rel=&quot;prefetch&quot; href=&quot;/images/big.jpeg&quot;&gt;</code></p>
<p>With the <code>href</code> being the target content and the <code>rel</code> attribute triggering the prefetching mechanism. Pretty simple. I've already implemented it here on my gallery pages.</p>
<p>One thing I would like to see, <a href="https://developer.mozilla.org/en/Link_prefetching_FAQ#Are_anchor_(.3ca.3e)_tags_prefetched.3f">and this is hinted at on the above linked Mozilla FAQ page</a>, is prefetching performed automatically on anchor (&lt;a&gt;) tags with <code>rel</code> attribute set appropriately. In my mind that would be any anchor with a <code>rel</code> attribute of  <code>next</code>, but the <code>prefetch</code> value would be fine as well. Personally, if that were supported I wouldn't have any (or very little) work to do to take advantage of this feature and in a general sense it would build on what people are already doing using <code>prev</code>, <code>next</code> and <code>toc</code> <code>rel</code> attributes on gallery links.</p>
<p>*it was scrapped because I hated the idea of forcing bandwidth usage on people with metered accounts. Since this is a browser based mechanism, it should be relatively painless for people in that situation to control whether or not content is prefetched. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.drunkenfist.com/304/2008/11/24/code-i-like-link-prefetching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webmonkey Relaunches and I Flashback to the 90s</title>
		<link>http://www.drunkenfist.com/304/2008/05/19/webmonkey-relaunches-and-i-flashback-to-the-90s/</link>
		<comments>http://www.drunkenfist.com/304/2008/05/19/webmonkey-relaunches-and-i-flashback-to-the-90s/#comments</comments>
		<pubDate>Mon, 19 May 2008 18:29:15 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tips-and-tricks]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.drunkenfist.com/304/?p=4558</guid>
		<description><![CDATA[For real! I ran through all of the primordial webmonkey tutorials* when I was starting out building sites (10-11 years ago now!) and if the newly relaunched site is half as helpful it will be a great boon to the community. Great info and a friendly, funny attitude made it the place for me to [...]]]></description>
			<content:encoded><![CDATA[<p>For real!  I ran through all of the primordial webmonkey tutorials* when I was starting out building sites (10-11 years ago now!) and if the newly relaunched site is half as helpful it will be a great boon to the community. Great info and a friendly, funny attitude made it <strong>the place</strong> for me to learn about the web thing back in the last century. Honestly, I owe a lot to the usefulness of those early tutorials. Looking back on it I realize that Webmonkey, coupled with the community that sprang up around Dreamweaver at the time**, was a great forge upon which to build up my web chops.</p>
<blockquote><p>We're Back! Webmonkey Relaunches, Rejoins Wired</p>
<p>The original web developer's resource has returned. Webmonkey has been completely redesigned, and we're ready to rock once more. Also, our entire content library is now hosted on a wiki, so every tutorial, reference page and code example is open for editing. Come on in and show us what you've got!
</p></blockquote>
<p><a href="http://www.webmonkey.com/">Webmonkey: the Web Developers Resource</a></p>
<p>*Some still exist:  like <a href="http://www.webmonkey.com/tutorial/JavaScript_Tutorial">Thau's JavaScript Tutorial</a>, which is over ten years old now.</p>
<p>**I've been a Dreamweaver user since Version 1.2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.drunkenfist.com/304/2008/05/19/webmonkey-relaunches-and-i-flashback-to-the-90s/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Doctype &#8211; First Pass? Very cool.</title>
		<link>http://www.drunkenfist.com/304/2008/05/14/google-doctype-first-pass-very-cool/</link>
		<comments>http://www.drunkenfist.com/304/2008/05/14/google-doctype-first-pass-very-cool/#comments</comments>
		<pubDate>Wed, 14 May 2008 21:19:25 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[tips-and-tricks]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.drunkenfist.com/304/?p=4552</guid>
		<description><![CDATA[Google Doctype, as introduced by Mark Pilgrim: The open web is the web built on open standards: HTML, JavaScript, CSS, and more. The open web is a beautiful soup of barely compatible clients and servers. It comprises billions of pages, millions of users, and thousands of browser-based applications. You can access the open web with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/docreader/#p(doctype)s(doctype)t(Welcome)">Google Doctype</a>, as introduced by <a href="http://diveintomark.org/">Mark Pilgrim</a>:</p>
<blockquote><p>The open web is the web built on open standards: HTML, JavaScript, CSS, and more. The open web is a beautiful soup of barely compatible clients and servers. It comprises billions of pages, millions of users, and thousands of browser-based applications. You can access the open web with open source and proprietary browsers, on open source and proprietary operating systems, on open source and proprietary hardware.</p>
<p>Google has built its business here, on the open web, and we want to help you build here too. To that end, we are happy to announce the formation of an encyclopedia for web developers, by web developers: Google Doctype.</p></blockquote>
<p><a href="http://google-code-updates.blogspot.com/2008/05/introducing-google-doctype.html">Google Code Blog: Introducing Google Doctype</a></p>
<p>Personally, I'm excited by this development (both practically and philosophically) and will likely contribute wherever it makes sense for me to lend a hand.  Looking at it quickly some of the HOWTO information is already very useful (<a href="http://code.google.com/docreader/#p(doctype)s(doctype)t(ArticlesXSS)">the web security</a> information especially) and it will only improve with time as more and more dedicated people get involved with the project. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.drunkenfist.com/304/2008/05/14/google-doctype-first-pass-very-cool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twenty New Yahoo! Performance Breakthroughs</title>
		<link>http://www.drunkenfist.com/304/2008/03/17/twenty-new-yahoo-performance-breakthroughs/</link>
		<comments>http://www.drunkenfist.com/304/2008/03/17/twenty-new-yahoo-performance-breakthroughs/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 01:09:14 +0000</pubDate>
		<dc:creator>rob</dc:creator>
				<category><![CDATA[performance]]></category>
		<category><![CDATA[tips-and-tricks]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.drunkenfist.com/304/2008/03/17/twenty-new-yahoo-performance-breakthroughs/</guid>
		<description><![CDATA[I don't know how many of these are "breakthroughs," but if you really are getting an A (and even if you're not), you might want to take a look at the following enhancements to squeeze the most out of your site's performance: &#124; View &#124; Upload your own Looking at the list, many are already [...]]]></description>
			<content:encoded><![CDATA[<p>I don't know how many of these are "breakthroughs," but if you really are getting an A (and even if you're not), you might want to take a look at the following enhancements to squeeze the most out of your site's performance:</p>
<div style="width:425px;text-align:left" id="__ss_310612"><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=high-performance-web-pages-20-new-best-practices-120577522992998-3"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=high-performance-web-pages-20-new-best-practices-120577522992998-3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"><a href="http://www.slideshare.net/?src=embed"><img src="http://static.slideshare.net/swf/logo_embd.png" style="border:0px none;margin-bottom:-5px" alt="SlideShare"/></a> | <a href="http://www.slideshare.net/stoyan/high-performance-web-pages-20-new-best-practices?src=embed" title="View 'High Performance Web Pages - 20 new best practices' on SlideShare">View</a> | <a href="http://www.slideshare.net/upload?src=embed">Upload your own</a></div>
</div>
<p>Looking at the list, many are already very familiar to me, but there are definitely a couple I'm interested in learning more about- more than a full bullet points in the above slideshare. Hopefully the teaser of "more detail coming soon" in the YDN blog post will come to pass sooner rather than later. </p>
<p>And <em>no</em>, I don't yet score an A, but I do get a 96 for the components I fully control, so I'm more than happy to look to other suggestions (like the ones below that I don't already practice) to get this place running a little quicker. </p>
<blockquote><p>
1. Flush the buffer early  	[server]<br />
2. Use GET for AJAX requests 	[server]<br />
3. Post-load components 	[content]<br />
4. Preload components 	[content]<br />
5. Reduce the number of DOM elements 	[content]<br />
6. Split components across domains 	[content]<br />
7. Minimize the number of iframes 	[content]<br />
8. No 404s 	[content]<br />
9. Reduce cookie size 	[cookie]<br />
10. Use cookie-free domains for components 	[cookie]<br />
11. Minimize DOM access 	[javascript]<br />
12. Develop smart event handlers 	[javascript]<br />
13. Choose
<link> over @import 	[css]<br />
14. Avoid filters 	[css]<br />
15. Optimize images 	[images]<br />
16. Optimize CSS sprites 	[images]<br />
17. Don't scale images in HTML 	[images]<br />
18. Make favicon.ico small and cacheable 	[images]<br />
19. Keep components under 25K 	[mobile]<br />
20. Pack components into a multipart document 	[mobile]</p></blockquote>
<p>More at the YDN blog:</p>
<p><a href="http://developer.yahoo.net/blog/archives/2008/03/yahoos_latest_p.html">Yahoo!'s Latest Performance Breakthroughs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.drunkenfist.com/304/2008/03/17/twenty-new-yahoo-performance-breakthroughs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

