On Fri, Jul 10, 2009 at 1:47 AM, DFectuoso <[email protected]> wrote:
> > I kinda knew that coz i did a very fast search for a file called > liftAjax.js... just wanted to be sure! And now I am... > > Why don't you guys let me run some benchmarks before actually > investing some time on this? (but keep talking about this subject tho, > nothing bad can come from exploring how to do faster lift apps! ) Premature Optimization leads to a lot of bad results. In general, we will get to the best results when we focus on actual issues that we're facing in our running applications. I'm all for solving a real world problem. If you've got an app that's loading slowly because of some Lift dependency, create a benchmark and we'll work on it and make it load as fast as is possible. But supposition about a particular piece of the Lift machinery without benchmark and without real-world need detracts from the list of real-world problems that others are facing. > > > On Jul 10, 1:33 am, "marius d." <[email protected]> wrote: > > Tim, sorry but I have to say that liftAjax.js IS generated dynamically > > as I stated above :). It is not a script sitting somewhere but it > > ultimately comes from ScriptRenderer.scala > > > > Br's, > > Marius > > > > On Jul 10, 11:26 am, Timothy Perrett <[email protected]> wrote: > > > > > Hey, > > > > > liftAjax.js is not regenerated dynamically as far as im aware... By > > > default, lift ships with the maven plugin for YUI compressor, so that > > > should minify the CSS/JS in your webapp dir. > > > > > Perhaps we should try and minify liftAjax.js during the build of > > > lift... marius is probally the best man for this as this stuff is > > > pretty much his baby. > > > > > Cheers, Tim > > > > > On Jul 10, 9:00 am, DFectuoso <[email protected]> wrote: > > > > > > I dont know how liftAjax.js is generated, or if it changes or not, > > > > also I have no idea (if it regenerated) how it could be minified, and > > > > I know that minification seem like a micro-optimization but... > > > > > > "With just GZipping and Javascript minification working together, the > > > > load time dropped from 16 seconds to just under 10 seconds. I was > > > > absolutely extactic at the progress I was making so for and so was my > > > > client!" > http://www.site-reference.com/articles/Website-Development/YSlow-Help... > > > > > > "For Google an increase in page load time from 0.4 second to 0.9 > > > > seconds decreased traffic and ad revenues by 20%. For Amazon every > 100 > > > > ms increase in load times decreased sales with 1%." > http://www.svennerberg.com/2008/12/page-load-times-vs-conversion-rates/ > > > > > > So, analyzing a couple of lift apps with YSlow I find a couple of > > > > things that could be done to improve the average load time. Of course > > > > there's a lot of impact on how you do your css, where you host css > and > > > > images(and how), compresion, server configuration, javascript and css > > > > performance and a lot of things on the application side; but it would > > > > be nice to make everything possible on the framework side to create > > > > that culture around every lift app =) > > > > > > So I wanted to throw that idea here and see how to help in this > > > > matter. > > > > > > Ideas? > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
