Hi Sanjay,

On Nov 18, 5:30 am, Sanjay <[EMAIL PROTECTED]> wrote:
> Simply "/static/css/abc.css" works for me in all environments.
> However, to be more robust, I think we should be using tg.url("/static/
> css/abc.css") .

My application is both computational and IO intensive. To keep the
response time down I have therefore spent some time on optimizing both
the computations, the IO and the used the YSlow extension for Firefox
and used it to optimize my web pages in my production environment:
http://developer.yahoo.com/yslow

The optimization includes:

1) Bundling my Javascript files for each page into a single file to
reduce the number of http requests.

2) Minifying the resulting Javascript files (using a script jsmin.py
found on the web).

3) Deploying static files to a Content Delivery Network (I found one
which is free for trafic < 500 GB per month, velocix.com).

Some of these YSlow suggested optimizations either need an external
server or make the code sligthly harder to maintain or debug - so I
don't use it in development mode.

Currently I am importing turbugears.config into my templates and
deciding upon which set of files to use based on a configuration
setting. But I was wondering if anyone had a better solution.

Best regards,
Jesper

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to