[Owncloud] App developers: We will deprecate use of %webroot% in CSS for ownCloud 7

Thomas Müller thomas.mueller at tmit.eu
Thu Feb 6 06:25:43 UTC 2014


Static files are to be served as static files by the web server.
By killing this variables we will be capable to move serving of css out of php.
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.
Regardless of the performance reason using the icon css is much cleaner and decouples the physical location of the file from the apps. 

Cheers, 

Tom


Von Samsung Mobile gesendet

-------- Ursprüngliche Nachricht --------
Von: Bernhard Posselt <mail at bernhard-posselt.com> 
Datum:06.02.2014  03:31  (GMT+01:00) 
An: Jan-Christoph Borchardt <hey at jancborchardt.net> 
Cc: owncloud at kde.org 
Betreff: Re: [Owncloud] App developers: We will deprecate use of %webroot%
  in CSS for ownCloud 7 

Don't get the performance issue. Isn't this cached already?

Am 05.02.2014 18:49 schrieb Jan-Christoph Borchardt <hey at jancborchardt.net>:
>
> Heya app developers! :) 
>
> Currently apps can include icons from core in their CSS using %webroot%. 
> We need to remove this because of performance reasons and will disable 
> support for it in ownCloud 7. The alternative for this is already in 
> master in the form of a new CSS file: icons.css 
> https://github.com/owncloud/core/blob/master/core/css/icons.css 
>
> All the icons from core can be included in your apps now without any 
> additional CSS. To do that, you would use the classes .icon and .icon-action 
> For example if you have a »Favorites« entry in the navigation of your 
> app, you would add the star icon by simply doing this: 
> <li class="icon icon-star">Favorites</li> 
>
> So now please remove everything containing %webroot% from your CSS and 
> switch to using the core classes in your HTML. 
> If you duplicated any icons from core into your app, please best also 
> change to using the icons from core. 
>
>
> Additionally, we will get rid of %appswebroot% as well. This was not 
> only bad for performance but also mostly useless: Apps generally used it 
> to reference themselves anyway. 
> If you for example have an app called »myfavoritesandwich« and in your 
> CSS you use »%appswebroot%/myfavoritesandwich/img/« you can just replace 
> that by »../img/«. No need to traverse all the way out of your app. 
> And if you use %appswebroot% to include something from a different app – 
> stop that! Apps should be self-contained. ;) 
>
>
> Any questions? 
> _______________________________________________ 
> Owncloud mailing list 
> Owncloud at kde.org 
> https://mail.kde.org/mailman/listinfo/owncloud 
_______________________________________________
Owncloud mailing list
Owncloud at kde.org
https://mail.kde.org/mailman/listinfo/owncloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20140206/9de955d8/attachment.html>


More information about the Owncloud mailing list