NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Reliability first (Score:1)
Re: (Score:2)
Re: (Score:1)
http://use.perl.org/comments.pl?sid=38429 [perl.org]
http://use.perl.org/~Ovid/journal/35576 [perl.org]
Re: (Score:2)
Re: (Score:1)
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
Re: (Score:2)
What irks me personally is that the entire eight hundred sixty kilobytes YUI albatross is loaded every other time I visit ...
Then stop clearing your cache! And use a browser that handles compression.
... even though I have disabled the Slash Ajax stuff in my prefs
No, you don't. You have Discussion 2 disabled. That's only one specific thing that uses Ajax on the site
... you're loading jQuery as well anwyay ...
As of a couple of weeks ago.
It should be easy to load YUI via jQuery, and to make that conditional on whether the Ajax UI is enabled.
We don't use YUI for Ajax.
Actually, we don't even use YUI for any of Discussion 2.
You make some valid points, but you really don't know the code nearly well enough to be making the assertions you do.
Re:Reliability first (Score:1)
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
If the above interests you, I'd be happy to volunteer an hour or two to dig into slashcode to help implement -- basically a simple tool to make the gz files. I run my tool a mod_perl launch time, but it could be part of any deploy step.
I agree that cache mitigates the problem, but it's so easy to fix that the payoff is worthwhile.
Reply to This
Parent