[dev] potential optimizations: static css and javascript

Chuck Hagenbuch chuck at horde.org
Wed Oct 13 18:44:53 PDT 2004


Quoting Jan Schneider <jan at horde.org>:

>> While I like this idea generally, I see some problems that are not easy to
>> circumvent with static CSS files, namely style sheets that use images,
>> like:
>>
>> $css['body']['background-image'] = "url('" . $registry->getParam('graphics',
>> 'horde') . "/themes/kolab/bg.png')";
>>
>> I can't really imagine dropping this design feature. Uh, wait, isn't the url
>> relative to the CSS file?
>
> Thinking a bit slow today. Yes, these paths are relative, but the "graphics"
> directory is configurable. Perhaps we could live with this inconsistency,
> requiring administrators to change CSS files if they want a different
> graphics path.

Now I'm confused. :) Isn't the url that's generated in the php code 
above *not*
relative?

This is a good point on the css files, though. But I think I agree with 
you that
we could live with the tradeoff, perhaps adding a generation script that'd
substitute the path correctly for the .css files.

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list