[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rt-devel
Subject:    Re: [rt-devel] difference between using callbacks and RT->AddStyleSheets
From:       Thomas Sibley <trs () bestpractical ! com>
Date:       2013-02-20 19:23:41
Message-ID: 512522BD.60806 () bestpractical ! com
[Download RAW message or body]

On 02/19/2013 11:05 PM, Christian Loos wrote:
> I just want to ask what are the differences between using the Callbacks
> in share/html/NoAuth/css/base/main.css and using RT->AddStyleSheets.

Callbacks in the CSS will hopefully eventually disappear once we make
the CSS truly static.  A list of additional CSS files to include won't.

There are also large caveats regarding CSS squishing if you use any of
the "Begin" callbacks in CSS.  This is why "End" callbacks should always
be used.

> <http://bestpractical.com/rt/docs/latest/customizing/styling_rt.html#Additional-files>
> notice that css files included by callbacks are not minified but as fare
> as I can see this files are minified because the squishing takes place
> after the inclusion of the callbacks.

CSS injected by the callbacks is indeed minified.  That the doc suggests
otherwise (although doesn't explicitly claim callbacks aren't minified)
is wrong.  Send a small doc patch?



-- 
RT training in Amsterdam, March 20-21: http://bestpractical.com/services/training.html

Help improve RT by taking our user survey: https://www.surveymonkey.com/s/N23JW9T
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic