• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Images in css files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Images in css files
      • From: Guido Neitzer <email@hidden>
References: 
 >Images in css files (From: Randy Wigginton <email@hidden>)
 >Re: Images in css files (From: Hugi Thordarson <email@hidden>)
 >Re: Images in css files (From: Mike Schrag <email@hidden>)
 >Re: Images in css files (From: Hugi Thordarson <email@hidden>)
 >Re: Images in css files (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Images in css files
  • Next by Date: Re: Images in css files
  • Previous by thread: Re: Images in css files
  • Next by thread: Re: Images in css files
  • Index(es):
    • Date
    • Thread