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?

Leave a Reply

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