All the Perl that's Practical to Extract and Report

Navigation

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Without JavaScript enabled, you might want to
use the classic discussion system instead. If you login, you can remember this preference.

What irks me personally is that the entire eight hundred sixty kilobytes YUI albatross is loaded every other time I visit even though I have disabled the Slash Ajax stuff in my prefs.

I know I can check the box to enable the Ajax UI on any page I look at, should I ever change my mind, and that the Ajax UI then immediately starts working, which means some Javascript is needed. But you’re loading jQuery as well anwyay, which is tiny and perfectly servicable for loading extra libraries on demand. It sho

I may not know how Slashcode works, but I am no web dev greenhorn. I know what can be done in HTML with and without Javascript, and the interface I do actually use is trivial to implement without any use of Javascript whatsoever, let alone Ajax. If there are still Ajax features somewhere, they are utterly wasted on me, and so is the site’s bandwidth and mine.

As for the browser cache:

Sorry, but it’s finite. I would like to increase it since I have disk space to spare, but disk cache lookup

I didn't imply otherwise. Indeed, I directly limited my claim of what you don't know to Slash, and I noted that you made valid points, but that they didn't apply as you asserted.

If there are still Ajax features somewhere, they are utterly wasted on me

Of course, you don't actually know that. And again, you also don't understand YUI very well since you seem to think it is primarily about Ajax. As to what YOU think is trivial to implement, I am uninterested in knowing.

I would like to increase it since I have disk space to spare...

That is your choice.

There's no Expires header in sight when I request those URIs

Yes. There doesn't need to be. We use Cache-Control/max-age. Now, that is not there e

So how about giving an example of how a feature I use requires YUI stuff, instead of skirting the matter with “you don’t know what it’s for” hints?

Here’s a summary of how I use the site: I read the site mainly via several search.pl feeds, and hit the site in the browser only to read comments, which I’ve set to nested mode, and to leave comments, which I do via the Reply links that lead me to a page with a very plain HTML form. None of these interactions happen without a

Well, use.perl is where the community is, so I have to put up with Slashcode. I suppose that given sufficient effort, the resultant complaints can be interpreted as a sense of entitlement; refusing to address any of the actual issues is then a reasonable response.

Hi Chris,I've been fighting the same problems on a website I'm working on (using scriptaculous instead of YUI, but the same issues with large JS). I've got a couple of easy tricks to get huge compression.

I use yuicompressor to squish my JS and then gzip it. Simple.gz content works smoothly on all browsers except Safari. To make it work with Safari too, all you have to do is name your file.jsgz instead of.js.gz and then do the following in your apache conf: