[rt-devel] difference between using callbacks and RT->AddStyleSheets

Thomas Sibley trs at bestpractical.com
Wed Feb 20 14:23:41 EST 2013


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?



More information about the rt-devel mailing list