[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
Folks, I just added lift:tail builtin snippet support. script and link tags are treated differently in terms of duplicates checking such as a scripts with the same src will not be rendered more then once. Same thing applies for link and href attribute. Same dups criteria are applied for head

[Lift] Re: Tail merge?

2009-05-16 Thread David Pollak
I think you missed a file during your checkin. The Tail object is missing :-( On Sat, May 16, 2009 at 7:15 AM, marius d. marius.dan...@gmail.com wrote: Folks, I just added lift:tail builtin snippet support. script and link tags are treated differently in terms of duplicates checking such

[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
ooops .. checking it right now :( On May 16, 7:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think you missed a file during your checkin.  The Tail object is missing :-( On Sat, May 16, 2009 at 7:15 AM, marius d. marius.dan...@gmail.com wrote: Folks, I just added

[Lift] Re: Tail merge?

2009-05-16 Thread marius d.
Done! ... very sorry about this. On May 16, 8:23 pm, marius d. marius.dan...@gmail.com wrote: ooops .. checking it right now :( On May 16, 7:53 pm, David Pollak feeder.of.the.be...@gmail.com wrote: I think you missed a file during your checkin.  The Tail object is missing :-( On Sat,

[Lift] Re: Tail merge?

2009-05-11 Thread marius d.
On May 10, 9:35 pm, Timothy Perrett timo...@getintheloop.eu wrote: Yeah google analytics is a good use case. I think talking about smashing static files is off topic, but there is some value in having a tail merge for when you want to put stuff in just before the body tag. My only thinking

[Lift] Re: Tail merge?

2009-05-11 Thread Viktor Klang
On Sun, May 10, 2009 at 10:39 PM, marius d. marius.dan...@gmail.com wrote: On May 10, 10:08 pm, Viktor Klang viktor.kl...@gmail.com wrote: What I've been noodling about for some time is to have dependency management as a part of the framework. That could be easily obtained by having

[Lift] Re: Tail merge?

2009-05-10 Thread KWright
Me or marius? Personally, I'm full of ideas :) On May 9, 1:26 am, Timothy Perrett timo...@getintheloop.eu wrote: Sounds like this could be a neat addition. Looking forward to see what you come up with :-) Cheers, Tim On 08/05/2009 20:19, marius d. marius.dan...@gmail.com wrote: A

[Lift] Re: Tail merge?

2009-05-10 Thread David Pollak
On Fri, May 8, 2009 at 5:26 PM, Timothy Perrett timo...@getintheloop.euwrote: Sounds like this could be a neat addition. Looking forward to see what you come up with :-) I'm not 100% keen on it. Loading a ton of stuff into the HTML page (rather than having stuff cached by the browser)

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can be deferred putting them at the bottom of the page can improve rendering. Br's, Marius On May 10, 4:42 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Fri,

[Lift] Re: Tail merge?

2009-05-10 Thread David Pollak
On Sun, May 10, 2009 at 6:55 AM, marius d. marius.dan...@gmail.com wrote: People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can be deferred putting them at the bottom of the page can improve rendering. Okay.. so

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
On May 10, 4:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 10, 2009 at 6:55 AM, marius d. marius.dan...@gmail.com wrote: People can choose to smash multiple js/css files into a single one, in fact it is a common practice. However for scripts that can be deferred

[Lift] Re: Tail merge?

2009-05-10 Thread Alexander Kellett
fyi. if you smash css into a single file but continue using relative urls in the css you'll end up with a slower page in the case that you're using asset hosts to work around the browsers http connection limit. when smashing into one file make sure to also apply the asset host trick to any url()

[Lift] Re: Tail merge?

2009-05-10 Thread Bryan.
A nice use for this tail merge would be for the Google Analytics tracking code, especially the ecommerce tracking code. Here's something to keep an eye on as well: http://blog.digg.com/?p=621 -- still very new and in development. --Bryan On May 10, 9:57 am, David Pollak

[Lift] Re: Tail merge?

2009-05-10 Thread Timothy Perrett
Yeah google analytics is a good use case. I think talking about smashing static files is off topic, but there is some value in having a tail merge for when you want to put stuff in just before the body tag. My only thinking right now is that why do we need a specific snippet to do this? Right

[Lift] Re: Tail merge?

2009-05-10 Thread David Pollak
On Sun, May 10, 2009 at 7:02 AM, marius d. marius.dan...@gmail.com wrote: On May 10, 4:57 pm, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, May 10, 2009 at 6:55 AM, marius d. marius.dan...@gmail.com wrote: People can choose to smash multiple js/css files into a single

[Lift] Re: Tail merge?

2009-05-10 Thread Viktor Klang
What I've been noodling about for some time is to have dependency management as a part of the framework. That could be easily obtained by having widgets etc register their dependencies in a SessionVar[List[Dependency]] and then simply add a DispatchPF to serve those dependencies as one package

[Lift] Re: Tail merge?

2009-05-10 Thread marius d.
On May 10, 10:08 pm, Viktor Klang viktor.kl...@gmail.com wrote: What I've been noodling about for some time is to have dependency management as a part of the framework. That could be easily obtained by having widgets etc register their dependencies in a SessionVar[List[Dependency]] and then

[Lift] Re: Tail merge?

2009-05-10 Thread KWright
Been thinking about this more, just trying to explore where this idea leads: - Where tail merge would really shine is that a snippet could be embedded inside a div tag, for example, but still have a tail pushed to the end of the page body. - Script entries in the head and tail blocks could be

[Lift] Re: Tail merge?

2009-05-08 Thread marius d.
A lift:tail built in snippet might me a good addition. I could probably allocate some time to noodle on it. Br's, Marius On May 8, 5:05 pm, KWright kev.lee.wri...@googlemail.com wrote: It's becoming an established best practice that scripts should be put at the END of a page, where possible,

[Lift] Re: Tail merge?

2009-05-08 Thread Charles F. Munat
I like it. Chas. marius d. wrote: A lift:tail built in snippet might me a good addition. I could probably allocate some time to noodle on it. Br's, Marius On May 8, 5:05 pm, KWright kev.lee.wri...@googlemail.com wrote: It's becoming an established best practice that scripts should be

[Lift] Re: Tail merge?

2009-05-08 Thread Timothy Perrett
Sounds like this could be a neat addition. Looking forward to see what you come up with :-) Cheers, Tim On 08/05/2009 20:19, marius d. marius.dan...@gmail.com wrote: A lift:tail built in snippet might me a good addition. I could probably allocate some time to noodle on it. Br's,