Hello all, I'm answering via cell phone so it might be some typos :) The real reason i need one css file be included in the very beggining is our analytics system that gothers client's access attempts. This css file has zero file size and processed With special servlet.
It's not possible to put css on the top of tml's layout since tapestry inserts its own resources first during rendering putting my resources second. I tried stack approach but with no results - seems its hardcoded in tapestry to put sys resources first :( Отправлено с iPhone 31.10.2011, в 21:14, "Martin Strand-4 [via Tapestry]"<ml-node+s1045711n4953125...@n5.nabble.com> написал(а): > On Mon, 31 Oct 2011 18:58:31 +0100, Thiago H. de Paula Figueiredo <[hidden > email]> wrote: > > > On Mon, 31 Oct 2011 11:48:04 -0200, Eugene Zhulkov <[hidden email]> > > 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: [hidden email] > For additional commands, e-mail: [hidden email] > > > > If you reply to this email, your message will be added to the discussion > below: > http://tapestry.1045711.n5.nabble.com/Insert-Stylesheet-to-the-Head-top-tp4952484p4953125.html > To unsubscribe from Insert Stylesheet to the Head top, click here. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Insert-Stylesheet-to-the-Head-top-tp4952484p4953261.html Sent from the Tapestry - User mailing list archive at Nabble.com.