I second this, but I think Tapestry already does this, at least looking at my 
application, it is the case.

On Oct 31, 2011, at 2:13 PM, Martin Strand wrote:

> On Mon, 31 Oct 2011 18:58:31 +0100, Thiago H. de Paula Figueiredo 
> <thiag...@gmail.com> wrote:
> 
>> On Mon, 31 Oct 2011 11:48:04 -0200, Eugene Zhulkov <ezhul...@gmail.com>
>> wrote:
>> 
>>> Dear community!
>> 
>> Hi!
>> 
>>> I'm facing a trouble that I can't solve. But I think it's solvable :)
>>> So I need to insert css stylesheet link to the top of the HEAD tag. Even
>>> before Tapestry resources.
>> 
>> Why? I've never read about needing to add CSS files before JavaScript ones.
> 
> One reason is to make sure the CSS downloads start before any scripts soak up 
> the browser's max connections. Loading CSS fast makes the app feel responsive.
> Maxing out browser connections is however not a real problem since Tapestry 
> can combine scripts to a single one.
> 
> Also, some polyfill scripts (such as selectivizr) require stylesheets to be 
> included first.
> IMO it would make sense for Tapestry to put CSS first by default.
> 
> 
>> Supposing you need to do this in all pages, one way of doing that is
>> writing a mixin that users MarkupWriter to move the <style> element to
>> where you want and apply this mixin to all pages. Another is to add your
>> .css file directly in your Layout component template.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to