No Mod Required

Dear Internet, Is There Any Reason I Wouldn't Want to Do This?

Got firebug? Load this test page: Simple Style Graffiti Canvas and watch as I load the "previous" and "next" pages with XHR, parse out the image tags in each, adding them to the users cache.

Is there any reason I wouldn't want to do that?

The performance benefit in the browser is a huge reason TO do it.

But what about the flip side?

I'm already thinking about the extra requests that might not be actually used by visitors who don't follow the back and next path? Those could add up maybe. If I implemented this my site would handle an extra 3 php requests per initial page load and then two cached requests and one new request each additional page. But, that doesn't seem like a big deal to me.

Again, am I missing something?

Anything else?

What Other People Are Saying

Want to join in the discussion? Leave a comment using the form below or link to http://www.drunkenfist.com/304/2008/02/12/dear-internet-is-there-any-reason-i-wouldnt-want-to-do-this/ from your own site to have your post show up here.

Leave a Reply

Note: Wrap all of your code blocks in <code>...</code> and replace < and > with &lt; and &gt;, respectively.