<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Static files are to be served as static files by the web server.</div><div>By killing this variables we will be capable to move serving of css out of php.</div><div>And yes css is cached in the client and yes there is also the minification and concatenation of all css. We will work on that as well. Killing the variables is just the first step of many.</div><div>Regardless of the performance reason using the icon css is much cleaner and decouples the physical location of the file from the apps. </div><div><br></div><div>Cheers, </div><div><br></div><div>Tom</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Von Samsung Mobile gesendet</div></div><br><br>-------- Ursprüngliche Nachricht --------<br>Von: Bernhard Posselt <mail@bernhard-posselt.com> <br>Datum:06.02.2014 03:31 (GMT+01:00) <br>An: Jan-Christoph Borchardt <hey@jancborchardt.net> <br>Cc: owncloud@kde.org <br>Betreff: Re: [Owncloud] App developers: We will deprecate use of %webroot%
in CSS for ownCloud 7 <br><br>Don't get the performance issue. Isn't this cached already?<br><br>Am 05.02.2014 18:49 schrieb Jan-Christoph Borchardt <hey@jancborchardt.net>:<br>><br>> Heya app developers! :) <br>><br>> Currently apps can include icons from core in their CSS using %webroot%. <br>> We need to remove this because of performance reasons and will disable <br>> support for it in ownCloud 7. The alternative for this is already in <br>> master in the form of a new CSS file: icons.css <br>> https://github.com/owncloud/core/blob/master/core/css/icons.css <br>><br>> All the icons from core can be included in your apps now without any <br>> additional CSS. To do that, you would use the classes .icon and .icon-action <br>> For example if you have a »Favorites« entry in the navigation of your <br>> app, you would add the star icon by simply doing this: <br>> <li class="icon icon-star">Favorites</li> <br>><br>> So now please remove everything containing %webroot% from your CSS and <br>> switch to using the core classes in your HTML. <br>> If you duplicated any icons from core into your app, please best also <br>> change to using the icons from core. <br>><br>><br>> Additionally, we will get rid of %appswebroot% as well. This was not <br>> only bad for performance but also mostly useless: Apps generally used it <br>> to reference themselves anyway. <br>> If you for example have an app called »myfavoritesandwich« and in your <br>> CSS you use »%appswebroot%/myfavoritesandwich/img/« you can just replace <br>> that by »../img/«. No need to traverse all the way out of your app. <br>> And if you use %appswebroot% to include something from a different app – <br>> stop that! Apps should be self-contained. ;) <br>><br>><br>> Any questions? <br>> _______________________________________________ <br>> Owncloud mailing list <br>> Owncloud@kde.org <br>> https://mail.kde.org/mailman/listinfo/owncloud <br>_______________________________________________<br>Owncloud mailing list<br>Owncloud@kde.org<br>https://mail.kde.org/mailman/listinfo/owncloud<br></body>