Re: Images in css files
Re: Images in css files
- Subject: Re: Images in css files
- From: Chuck Hill <email@hidden>
- Date: Sun, 30 Nov 2008 10:03:26 -0800
On Nov 30, 2008, at 7:43 AM, Mike Schrag wrote:
I'd recommend moving the declaration for css-classes that
reference WO resources to your component.
If you're using Wonder, this should not be necessary -- but you
must do relative URLs for this to work in development and
deployment. Given that CSS files for a full site can get BIG, I
personally would recommend at least using ERXStyleSheet's caching
stylesheet for dynamic content. But ideally, IMO, you should
serve them statically.
Are there any reasons besides performance to do it statically?
Nope ... So if that's not an issue, then I would agree that it does
give you some flexibility to generate them dynamically.
You will also have to make sure the headers are set to allow client
caching (which is usually not what you want for dynamic content) or
the users will have to wait for for CSS to be downloaded again on
every page. That is also a performance issue, but on the other side
of things.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden